﻿namespace HRM.CORE
{
    using DevExpress.Data;
    using DevExpress.Utils;
    using DevExpress.XtraBars;
    using DevExpress.XtraBars.Docking;
    using DevExpress.XtraEditors;
    using DevExpress.XtraEditors.Controls;
    using DevExpress.XtraEditors.Repository;
    using DevExpress.XtraGrid;
    using DevExpress.XtraGrid.Columns;
    using DevExpress.XtraGrid.Views.Base;
    using DevExpress.XtraGrid.Views.Grid;
    using Microsoft.VisualBasic;
    using APP.HELPER;
    using Common.Base;
    using Common.Class; using APP.HELPER.Utils.Language; using Security.Security; using Dictionary.ERP;
    using Dictionary;
    using HRM.CORE;
    using HRM.CORE.CLASS;
    using HRM.CORE.Process;
    using HRM.CORE.REPORT;
    
    
    
    using System; using Extra.ERP;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Runtime.CompilerServices;
    using System.Windows.Forms; using Common;
    using Extra.ERP;
    using Common;
    using APP.HELPER.Utils;

    public class xucTimekeeperTable1 : Common.xucBase
    {
        private Bar bar1;
        private BarButtonItem barButtonItem1;
        private BarDockControl barDockControlBottom;
        private BarDockControl barDockControlLeft;
        private BarDockControl barDockControlRight;
        private BarDockControl barDockControlTop;
        private BarManager barManager1;
        private BarEditItem bbeTimeKeeperTableListName;
        private BarEditItem bbeYear;
        private BarButtonItem bbiClose;
        private BarButtonItem bbiExport;
        private BarButtonItem bbiFinish;
        private BarButtonItem bbiInsertSymbol;
        private BarButtonItem bbiLock;
        private BarButtonItem bbiOpen;
        private BarButtonItem bbiPrint;
        private BarButtonItem bbiRefresh;
        private BarButtonItem bbiSave;
        private BarButtonItem bbiTimekeeperExtraPrivate;
        private BarButtonItem bbiTimekeeperTable;
        private BarButtonItem bbiTimekeeperTableHour;
        private Common.Class.clsAllOption clsAllOption = new Common.Class.clsAllOption();
        private GridColumn colAbsent;
        private GridColumn colAbsentL;
        private GridColumn colAbsentWOL;
        private GridColumn colBranchName;
        private GridColumn colClockingError;
        private GridColumn colClockingErrorBegin;
        private GridColumn colClockingErrorEnd;
        private GridColumn colCompensationDay;
        private GridColumn colDay1;
        private GridColumn colDay10;
        private GridColumn colDay11;
        private GridColumn colDay12;
        private GridColumn colDay13;
        private GridColumn colDay14;
        private GridColumn colDay15;
        private GridColumn colDay16;
        private GridColumn colDay17;
        private GridColumn colDay18;
        private GridColumn colDay19;
        private GridColumn colDay2;
        private GridColumn colDay20;
        private GridColumn colDay21;
        private GridColumn colDay22;
        private GridColumn colDay23;
        private GridColumn colDay24;
        private GridColumn colDay25;
        private GridColumn colDay26;
        private GridColumn colDay27;
        private GridColumn colDay28;
        private GridColumn colDay29;
        private GridColumn colDay3;
        private GridColumn colDay30;
        private GridColumn colDay31;
        private GridColumn colDay4;
        private GridColumn colDay5;
        private GridColumn colDay6;
        private GridColumn colDay7;
        private GridColumn colDay8;
        private GridColumn colDay9;
        private GridColumn colDepartmentName;
        private GridColumn colEarlyMinute;
        private GridColumn colEmployeeCode;
        private GridColumn colExtraHour;
        private GridColumn colFirstName;
        private GridColumn colFurloughDay;
        private GridColumn colGroupName;
        private GridColumn colLastName;
        private GridColumn colLateMinute;
        private GridColumn colNightDutyDay;
        private GridColumn colNotRealDay;
        private GridColumn colPrivateHour;
        private GridColumn colRealDay;
        private GridColumn colRegulationDay;
        private GridColumn colTotalHour;
        private GridColumn colWorkTotal;
        private IContainer components = null;
        private DockManager dockManager1;
        private DockPanel dockPanel1;
        private ControlContainer dockPanel1_Container;
        private ControlContainer dockPanel2_Container;
        private DockPanel dpFooter;
        public DataTable dt_Timekeeper = new DataTable();
        private FlowLayoutPanel flowLayoutPanel1;
        private FlowLayoutPanel flowLayoutPanel2;
        private FlowLayoutPanel flowLayoutPanel3;
        private GridView gbList;
        private GridControl gcList;
        private GridColumn gridColumn1;
        private AutoHideContainer hideContainerBottom;
        private AutoHideContainer hideContainerLeft;
        public DevExpress.Utils.ImageCollection imageCollection2;
        private LabelControl lbBranchName;
        private LabelControl lbCompanyName;
        private LabelControl lbDepartmentName;
        private LabelControl lbGroupName;
        private LabelControl lbMessage;
        private LabelControl lbTimeKeeperName;
        private string m_Code = MyLogin.Code;
        private string m_CompanyName = "";
        private System.DateTime m_Date;
        private double m_DayHour = 0.0;
        private string m_Description = "";
        private int m_EarlyMinute = 0;
        private string m_EmployeeCode = "";
        private double m_Hour = 0.0;
        private bool m_IsEditValueChanged = true;
        private bool m_IsFinish = false;
        private bool m_IsLock = false;
        private bool m_IsOvertime = false;
        private bool m_IsSetRowCellValue = true;
        private bool m_IsWork = true;
        private int m_LateMinute = 0;
        private int m_Level = MyLogin.Level;
        private int m_Month = 0;
        private string m_NewSymbol = "";
        private double m_NightHour = 0.0;
        private int m_OldEarlyMinute = 0;
        private double m_OldHour = 0.0;
        private int m_OldLateMinute = 0;
        private double m_PrivateHour = 0.0;
        private string m_ShiftCode = "";
        private int m_Sorted = 0;
        private string m_Symbol = "";
        private System.DateTime m_TimeIn;
        private Guid m_TimeKeeperTableListID = Guid.Empty;
        private System.DateTime m_TimeOut;
        private int m_Year = 0;
        private PanelControl panelControl1;
        private PopupMenu popupMenu1;
        private PopupContainerControl ppContainerControl = new PopupContainerControl();
        private PictureBox ptFinish;
        private PictureBox ptLock;
        private GridView repositoryItemGridLookUpEdit2View;
        private RepositoryItemPopupContainerEdit repPopup;
        private RepositoryItemGridLookUpEdit repTimeKeeperList;
        private RepositoryItemTimeEdit repYear;
        private SimpleButton simpleButton1;
        private double x_AbsentL = 0.0;
        private double x_AbsentWOL = 0.0;
        private double x_ClockingError = 0.0;
        private double x_ClockingErrorBegin = 0.0;
        private double x_ClockingErrorEnd = 0.0;
        private double x_CompensationDay = 0.0;
        private int x_EarlyMinute = 0;
        private double x_ExtraHour = 0.0;
        private double x_FurloughDay = 0.0;
        private int x_LateMinute = 0;
        private int x_NightDutyDay = 0;
        private string x_OEmployeeCode;
        private double x_PrivateHour = 0.0;
        private double x_RealDay = 0.0;
        private double x_RegulationDay = 0.0;
        private double x_TotalHour = 0.0;
        private double x_WorkTotal = 0.0;
        private xucExpandCollapseButton xucExpandCollapseButton1;
        public xucOrganization xucOrganization1;
        private HRM.CORE.xucTimekeepingAdd xucTimekeepingAdd = new HRM.CORE.xucTimekeepingAdd();

        public event ClosedHandler Closed;

        public event TimekeeperTableDeletedHandler TimekeeperTableDeleted;

        public event TimekeeperTableHourSelectedHandler TimekeeperTableHourSelected;

        public event TimekeeperTableInsertedHandler TimekeeperTableInserted;

        public event UnShiftDataHandler UnShiftData;

        public xucTimekeeperTable1()
        {
            this.InitializeComponent();
            base.RestoreLayout(this.gbList, this);
            this.Init();
            this.InitSymbol();
            base.Load += new EventHandler(this.xucTimekeeperTable_Load);
        }

        private void bbeTimeKeeperTableListName_EditValueChanged(object sender, EventArgs e)
        {
            base.SetWaitDialogCaption("Đang khởi tạo dữ liệu...");
            HRM_TIMEKEEPER_TABLE hrm_timekeeper_table = new HRM_TIMEKEEPER_TABLE();
            Guid timeKeeperTableListID = this.m_TimeKeeperTableListID;
            this.gcList.DataSource = hrm_timekeeper_table.GetList1(this.m_Level, this.m_Code, timeKeeperTableListID);
            this.gbList.BestFitColumns();
            HRM_TIMEKEEPER_TABLELIST hrm_timekeeper_tablelist = new HRM_TIMEKEEPER_TABLELIST();
            hrm_timekeeper_tablelist.GetByID(timeKeeperTableListID);
            this.m_Month = hrm_timekeeper_tablelist.Month;
            this.m_Year = hrm_timekeeper_tablelist.Year;
            this.lbTimeKeeperName.Text = "Bảng Chấm C\x00f4ng Th\x00e1ng " + this.m_Month.ToString() + " - " + this.m_Year.ToString() + " (Theo K\x00fd Hiệu - Dạng 2)";
            this.m_IsLock = hrm_timekeeper_tablelist.IsLock;
            this.m_IsFinish = hrm_timekeeper_tablelist.IsFinish;
            this.InitInterface();
            this.DoHide();
        }

        private void bbeYear_EditValueChanged(object sender, EventArgs e)
        {
            try
            {
                this.m_Year = Convert.ToDateTime(this.bbeYear.EditValue.ToString()).Year;
                this.LoadTimeKeeperTableList();
            }
            catch
            {
            }
        }

        private void bbiClose_ItemClick(object sender, ItemClickEventArgs e)
        {
            this.RaiseClosedHandler();
        }

        private void bbiExport_ItemClick(object sender, ItemClickEventArgs e)
        {
            base._exportView = this.gbList;
            SYS_LOG.Insert("Bảng Chấm C\x00f4ng Th\x00e1ng", "Xuất");
            base.Export();
        }

        private void bbiFinish_ItemClick(object sender, ItemClickEventArgs e)
        {
            if (!ClsOption.System2.IsQuestion || (XtraMessageBox.Show("Bạn c\x00f3 chắc l\x00e0 muốn thực hiện t\x00e1c vụ n\x00e0y kh\x00f4ng?" + Environment.NewLine + " T\x00e1c vụ n\x00e0y được hiểu l\x00e0 bạn đ\x00e3 ho\x00e0n th\x00e0nh bảng chấm c\x00f4ng của th\x00e1ng n\x00e0y!", "Th\x00f4ng b\x00e1o", MessageBoxButtons.YesNo, MessageBoxIcon.Question) != DialogResult.No))
            {
                HRM_TIMEKEEPER_TABLELIST hrm_timekeeper_tablelist = new HRM_TIMEKEEPER_TABLELIST();
                if (hrm_timekeeper_tablelist.Finish(this.m_TimeKeeperTableListID).ToString() == "OK")
                {
                    this.m_IsLock = true;
                    this.m_IsFinish = true;
                    this.InitInterface();
                }
                else
                {
                    MessageBox.Show("Fail!");
                }
            }
        }

        private void bbiInsertSymbol_ItemClick(object sender, ItemClickEventArgs e)
        {
            if ((this.m_Month != 0) && (this.m_Year != 0))
            {
                xfmInsertSymbol symbol = new xfmInsertSymbol(this.m_Month, this.m_Year);
                symbol.UnShiftData += new xfmInsertSymbol.UnShiftDataHandler(this.xfmInsertSymbol_UnShiftData);
                symbol.ShowDialog();
            }
            else
            {
                XtraMessageBox.Show("Vui l\x00f2ng chọn th\x00e1ng chấm c\x00f4ng tương ứng!", "Th\x00f4ng b\x00e1o", MessageBoxButtons.OK, MessageBoxIcon.Question);
            }
        }

        private void bbiLock_ItemClick(object sender, ItemClickEventArgs e)
        {
            HRM_TIMEKEEPER_TABLELIST hrm_timekeeper_tablelist = new HRM_TIMEKEEPER_TABLELIST();
            if (hrm_timekeeper_tablelist.Lock(this.m_TimeKeeperTableListID).ToString() == "OK")
            {
                this.m_IsLock = true;
                this.InitInterface();
            }
            else
            {
                MessageBox.Show("Fail!");
            }
        }

        private void bbiOpen_ItemClick(object sender, ItemClickEventArgs e)
        {
            HRM_TIMEKEEPER_TABLELIST hrm_timekeeper_tablelist = new HRM_TIMEKEEPER_TABLELIST();
            if (hrm_timekeeper_tablelist.Open(this.m_TimeKeeperTableListID).ToString() == "OK")
            {
                this.m_IsLock = false;
                this.InitInterface();
            }
            else
            {
                MessageBox.Show("Fail!");
            }
        }

        private void bbiPrint_ItemClick(object sender, ItemClickEventArgs e)
        {
            new xfmOptionPrintTimekeeperTable(this.m_Level, this.m_Code, this.m_Month, this.m_Year, 1).ShowDialog();
        }

        private void bbiRefresh_ItemClick(object sender, ItemClickEventArgs e)
        {
            this.LoadGrid(this.m_Level, this.m_Code);
        }

        private void bbiSave_ItemClick(object sender, ItemClickEventArgs e)
        {
            if (this.SaveData())
            {
                XtraMessageBox.Show("Qu\x00e1 tr\x00ecnh lưu đ\x00e3 ho\x00e0n tất!");
            }
            else
            {
                XtraMessageBox.Show("Lưu thất bại!");
            }
        }

        private void bbiTimekeeperExtraPrivate_ItemClick(object sender, ItemClickEventArgs e)
        {
            new clsTimeKeeperOption { TimeKeeperTableDefault = 3 }.SaveOption();
            this.RaiseTimekeeperTableHourSelectedHandler(this.m_Code, this.m_TimeKeeperTableListID, this.m_Year, 2);
        }

        private void bbiTimekeeperTable_ItemClick(object sender, ItemClickEventArgs e)
        {
            new clsTimeKeeperOption { TimeKeeperTableDefault = 0 }.SaveOption();
            this.RaiseTimekeeperTableHourSelectedHandler(this.m_Code, this.m_TimeKeeperTableListID, this.m_Year, 0);
        }

        private void bbiTimekeeperTableHour_ItemClick(object sender, ItemClickEventArgs e)
        {
            new clsTimeKeeperOption { TimeKeeperTableDefault = 2 }.SaveOption();
            this.RaiseTimekeeperTableHourSelectedHandler(this.m_Code, this.m_TimeKeeperTableListID, this.m_Year, 1);
        }

        private void btSymbolEdit_Click(object sender, EventArgs e)
        {
            new xfmSymbol().ShowDialog();
        }

        private string DayName(int Year, int Month, int Day)
        {
            try
            {
                System.DateTime time = new System.DateTime(Year, Month, Day);
                return (Day.ToString() + " " + time.DayOfWeek.ToString().Substring(0, 3));
            }
            catch
            {
                return Day.ToString();
            }
        }

        public bool DeleteData()
        {
            HRM_TIMEKEEPER hrm_timekeeper = new HRM_TIMEKEEPER();
            if (hrm_timekeeper.DeleteByEmployeeDate(this.m_TimeKeeperTableListID, this.m_EmployeeCode, this.m_Date) != "OK")
            {
                return false;
            }
            return true;
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void dpFooter_SizeChanged(object sender, EventArgs e)
        {
            if ((this.dpFooter.Visibility == DockVisibility.AutoHide) || (this.dpFooter.Visibility == DockVisibility.Hidden))
            {
                this.SaveStyle(false, this.dpFooter.Height);
            }
            else
            {
                this.SaveStyle(true, this.dpFooter.Height);
            }
        }

        private void dpFooter_VisibilityChanged(object sender, VisibilityChangedEventArgs e)
        {
            if ((this.dpFooter.Visibility == DockVisibility.AutoHide) || (this.dpFooter.Visibility == DockVisibility.Hidden))
            {
                this.SaveStyle(false, this.dpFooter.Height);
            }
            else
            {
                this.SaveStyle(true, this.dpFooter.Height);
            }
        }

        private void gbList_CellMerge(object sender, CellMergeEventArgs e)
        {
            if ((((((e.Column == this.gbList.Columns["WorkTotal"]) || (e.Column == this.gbList.Columns["RealDay"])) || ((e.Column == this.gbList.Columns["RegulationDay"]) || (e.Column == this.gbList.Columns["FurloughDay"]))) || (((e.Column == this.gbList.Columns["CompensationDay"]) || (e.Column == this.gbList.Columns["AbsentWOL"])) || ((e.Column == this.gbList.Columns["AbsentL"]) || (e.Column == this.gbList.Columns["ClockingError"])))) || ((((e.Column == this.gbList.Columns["ClockingErrorBegin"]) || (e.Column == this.gbList.Columns["ClockingErrorEnd"])) || ((e.Column == this.gbList.Columns["TotalHour"]) || (e.Column == this.gbList.Columns["LateMinute"]))) || (((e.Column == this.gbList.Columns["EarlyMinute"]) || (e.Column == this.gbList.Columns["NightDutyDay"])) || (e.Column == this.gbList.Columns["ExtraHour"])))) || (e.Column == this.gbList.Columns["PrivateHour"]))
            {
                string str = Convert.ToString(this.gbList.GetRowCellValue(e.RowHandle1, this.gbList.Columns["EmployeeCode"]));
                string str2 = Convert.ToString(this.gbList.GetRowCellValue(e.RowHandle2, this.gbList.Columns["EmployeeCode"]));
                e.Handled = true;
                if (str == str2)
                {
                    e.Merge = true;
                    e.Handled = false;
                }
            }
        }

        private void gbList_CellValueChanged(object sender, CellValueChangedEventArgs e)
        {
            if ((((((e.Column != this.colRealDay) && (e.Column != this.colWorkTotal)) && ((e.Column != this.colCompensationDay) && (e.Column != this.colRegulationDay))) && (((e.Column != this.colFurloughDay) && (e.Column != this.colAbsentWOL)) && ((e.Column != this.colAbsentL) && (e.Column != this.colClockingError)))) && ((((e.Column != this.colClockingErrorBegin) && (e.Column != this.colClockingErrorEnd)) && ((e.Column != this.colTotalHour) && (e.Column != this.colLateMinute))) && (((e.Column != this.colEarlyMinute) && (e.Column != this.colNightDutyDay)) && (e.Column != this.colExtraHour)))) && (e.Column != this.colPrivateHour))
            {
                if (!this.m_IsEditValueChanged)
                {
                    this.m_IsEditValueChanged = true;
                    this.SetRowCellValue(e.RowHandle, this.m_EmployeeCode);
                }
                else
                {
                    this.m_NewSymbol = e.Value.ToString();
                    if ((((this.m_NewSymbol == "L") || (this.m_NewSymbol == "CN")) || (this.m_NewSymbol == "T7")) || (this.m_NewSymbol == ""))
                    {
                        DIC_SHIFT dic_shift = new DIC_SHIFT();
                        foreach (DataRow row in dic_shift.GetList().Rows)
                        {
                            this.m_ShiftCode = row["ShiftCode"].ToString();
                            this.TotalCalculate(0, 1);
                            this.dt_Timekeeper.Rows.Add(new object[] { 
                                this.m_TimeKeeperTableListID, this.m_EmployeeCode, this.m_ShiftCode, this.m_Date, this.m_NewSymbol, this.m_TimeIn, this.m_TimeOut, this.m_Hour, this.m_DayHour, this.m_NightHour, this.m_PrivateHour, this.m_LateMinute, this.m_EarlyMinute, this.m_IsOvertime, false, 0, 
                                this.m_Description
                             });
                        }
                    }
                    else
                    {
                        this.m_IsWork = HRM_TIMEKEEPER_SHIFT.IsWork(this.m_TimeKeeperTableListID, this.m_EmployeeCode, this.m_ShiftCode, this.m_Date.Day);
                        string[] strArray = this.m_NewSymbol.Split(new char[] { ',' });
                        for (int i = 0; i < strArray.Length; i++)
                        {
                            string[] strArray2 = strArray[i].Split(new char[] { '(', ')' });
                            if (strArray2.Length == 1)
                            {
                                if (this.ShiftIsExist(strArray2[0]))
                                {
                                    this.m_ShiftCode = strArray2[0];
                                    this.m_NewSymbol = "+";
                                    this.TotalCalculate(i, strArray2.Length);
                                    this.dt_Timekeeper.Rows.Add(new object[] { 
                                        this.m_TimeKeeperTableListID, this.m_EmployeeCode, this.m_ShiftCode, this.m_Date, this.m_NewSymbol, this.m_TimeIn, this.m_TimeOut, this.m_Hour, this.m_DayHour, this.m_NightHour, this.m_PrivateHour, this.m_LateMinute, this.m_EarlyMinute, this.m_IsOvertime, this.m_IsWork, i, 
                                        this.m_Description
                                     });
                                    continue;
                                }
                                this.gbList.SetFocusedValue(this.m_Symbol);
                                XtraMessageBox.Show("K\x00fd hiệu chấm c\x00f4ng kh\x00f4ng tồn tại!");
                                return;
                            }
                            if (strArray2.Length == 3)
                            {
                                if (this.ShiftIsExist(strArray2[0]))
                                {
                                    this.m_ShiftCode = strArray2[0];
                                    this.m_NewSymbol = strArray2[1];
                                    if (!this.MultiSymbolIsExist())
                                    {
                                        this.gbList.SetFocusedValue(this.m_Symbol);
                                        XtraMessageBox.Show("K\x00fd hiệu chấm c\x00f4ng kh\x00f4ng tồn tại!");
                                        return;
                                    }
                                    string[] strArray3 = this.m_NewSymbol.Split(new char[] { ';' });
                                    for (int j = 0; j < strArray3.Length; j++)
                                    {
                                        this.m_NewSymbol = strArray3[j];
                                        this.TotalCalculate(j, strArray3.Length);
                                        this.dt_Timekeeper.Rows.Add(new object[] { 
                                            this.m_TimeKeeperTableListID, this.m_EmployeeCode, this.m_ShiftCode, this.m_Date, this.m_NewSymbol, this.m_TimeIn, this.m_TimeOut, this.m_Hour, this.m_DayHour, this.m_NightHour, this.m_PrivateHour, this.m_LateMinute, this.m_EarlyMinute, this.m_IsOvertime, this.m_IsWork, j, 
                                            this.m_Description
                                         });
                                    }
                                }
                                else
                                {
                                    this.gbList.SetFocusedValue(this.m_Symbol);
                                    XtraMessageBox.Show("K\x00fd hiệu chấm c\x00f4ng kh\x00f4ng tồn tại!");
                                    return;
                                }
                            }
                        }
                    }
                    this.DeleteData();
                    if (this.SaveData())
                    {
                        if (!this.m_IsSetRowCellValue)
                        {
                            this.m_IsSetRowCellValue = true;
                        }
                        else
                        {
                            this.SetRowCellValue(e.RowHandle, this.m_EmployeeCode);
                        }
                    }
                    this.SaveProcess();
                }
            }
        }

        private void gbList_CellValueChanging(object sender, CellValueChangedEventArgs e)
        {
        }

        private void gbList_CustomDrawRowIndicator(object sender, RowIndicatorCustomDrawEventArgs e)
        {
            if (e.RowHandle == -2147483648)
            {
                e.Handled = true;
                e.Painter.DrawObject(e.Info);
                Rectangle bounds = e.Bounds;
                e.Graphics.FillRectangle(new SolidBrush(Color.FromArgb(0x3f, 0xa5, 0xa5, 0)), bounds);
                bounds.Height--;
                bounds.Width--;
                e.Graphics.DrawRectangle(Pens.Blue, bounds);
            }
            int rowHandle = e.RowHandle;
            if (rowHandle >= 0)
            {
                rowHandle++;
                e.Info.DisplayText = rowHandle.ToString();
            }
        }

        private void gbList_CustomSummaryCalculate(object sender, CustomSummaryEventArgs e)
        {
            int num = Convert.ToInt32((e.Item as GridSummaryItem).Tag);
            if (e.SummaryProcess == CustomSummaryProcess.Start)
            {
                this.x_OEmployeeCode = "";
                this.x_WorkTotal = 0.0;
                this.x_RealDay = 0.0;
                this.x_RegulationDay = 0.0;
                this.x_FurloughDay = 0.0;
                this.x_CompensationDay = 0.0;
                this.x_AbsentWOL = 0.0;
                this.x_AbsentL = 0.0;
                this.x_ClockingError = 0.0;
                this.x_ClockingErrorBegin = 0.0;
                this.x_ClockingErrorEnd = 0.0;
                this.x_TotalHour = 0.0;
                this.x_LateMinute = 0;
                this.x_EarlyMinute = 0;
                this.x_NightDutyDay = 0;
                this.x_ExtraHour = 0.0;
                this.x_PrivateHour = 0.0;
            }
            if (e.SummaryProcess == CustomSummaryProcess.Calculate)
            {
                string str = this.gbList.GetRowCellValue(e.RowHandle, "EmployeeCode").ToString();
                if (str != this.x_OEmployeeCode)
                {
                    switch (num)
                    {
                        case 0:
                            this.x_WorkTotal += Convert.ToDouble(e.FieldValue);
                            break;

                        case 1:
                            this.x_RealDay += Convert.ToDouble(e.FieldValue);
                            break;

                        case 2:
                            this.x_RegulationDay += Convert.ToDouble(e.FieldValue);
                            break;

                        case 3:
                            this.x_FurloughDay += Convert.ToDouble(e.FieldValue);
                            break;

                        case 4:
                            this.x_CompensationDay += Convert.ToDouble(e.FieldValue);
                            break;

                        case 5:
                            this.x_AbsentWOL += Convert.ToDouble(e.FieldValue);
                            break;

                        case 6:
                            this.x_AbsentL += Convert.ToDouble(e.FieldValue);
                            break;

                        case 7:
                            this.x_ClockingError += Convert.ToDouble(e.FieldValue);
                            break;

                        case 8:
                            this.x_ClockingErrorBegin += Convert.ToDouble(e.FieldValue);
                            break;

                        case 9:
                            this.x_ClockingErrorEnd += Convert.ToDouble(e.FieldValue);
                            break;

                        case 10:
                            this.x_TotalHour += Convert.ToDouble(e.FieldValue);
                            break;

                        case 11:
                            this.x_LateMinute += Convert.ToInt32(e.FieldValue);
                            break;

                        case 12:
                            this.x_EarlyMinute += Convert.ToInt32(e.FieldValue);
                            break;

                        case 13:
                            this.x_NightDutyDay += Convert.ToInt32(e.FieldValue);
                            break;

                        case 14:
                            this.x_ExtraHour += Convert.ToDouble(e.FieldValue);
                            break;

                        case 15:
                            this.x_PrivateHour += Convert.ToDouble(e.FieldValue);
                            break;
                    }
                }
                this.x_OEmployeeCode = str;
            }
            if (e.SummaryProcess == CustomSummaryProcess.Finalize)
            {
                switch (num)
                {
                    case 0:
                        e.TotalValue = this.x_WorkTotal;
                        break;

                    case 1:
                        e.TotalValue = this.x_RealDay;
                        break;

                    case 2:
                        e.TotalValue = this.x_RegulationDay;
                        break;

                    case 3:
                        e.TotalValue = this.x_FurloughDay;
                        break;

                    case 4:
                        e.TotalValue = this.x_CompensationDay;
                        break;

                    case 5:
                        e.TotalValue = this.x_AbsentWOL;
                        break;

                    case 6:
                        e.TotalValue = this.x_AbsentL;
                        break;

                    case 7:
                        e.TotalValue = this.x_ClockingError;
                        break;

                    case 8:
                        e.TotalValue = this.x_ClockingErrorBegin;
                        break;

                    case 9:
                        e.TotalValue = this.x_ClockingErrorEnd;
                        break;

                    case 10:
                        e.TotalValue = this.x_TotalHour;
                        break;

                    case 11:
                        e.TotalValue = this.x_LateMinute;
                        break;

                    case 12:
                        e.TotalValue = this.x_EarlyMinute;
                        break;

                    case 13:
                        e.TotalValue = this.x_NightDutyDay;
                        break;

                    case 14:
                        e.TotalValue = this.x_ExtraHour;
                        break;

                    case 15:
                        e.TotalValue = this.x_PrivateHour;
                        break;
                }
            }
        }

        private void gbList_FocusedColumnChanged(object sender, FocusedColumnChangedEventArgs e)
        {
            try
            {
                this.m_Symbol = this.gbList.GetFocusedValue().ToString();
                this.m_EmployeeCode = this.gbList.GetFocusedRowCellValue(this.colEmployeeCode).ToString();
                this.GetOldValue(this.m_Symbol);
                int day = 0;
                switch (e.FocusedColumn.Name)
                {
                    case "colDay1":
                        day = 1;
                        break;

                    case "colDay2":
                        day = 2;
                        break;

                    case "colDay3":
                        day = 3;
                        break;

                    case "colDay4":
                        day = 4;
                        break;

                    case "colDay5":
                        day = 5;
                        break;

                    case "colDay6":
                        day = 6;
                        break;

                    case "colDay7":
                        day = 7;
                        break;

                    case "colDay8":
                        day = 8;
                        break;

                    case "colDay9":
                        day = 9;
                        break;

                    case "colDay10":
                        day = 10;
                        break;

                    case "colDay11":
                        day = 11;
                        break;

                    case "colDay12":
                        day = 12;
                        break;

                    case "colDay13":
                        day = 13;
                        break;

                    case "colDay14":
                        day = 14;
                        break;

                    case "colDay15":
                        day = 15;
                        break;

                    case "colDay16":
                        day = 0x10;
                        break;

                    case "colDay17":
                        day = 0x11;
                        break;

                    case "colDay18":
                        day = 0x12;
                        break;

                    case "colDay19":
                        day = 0x13;
                        break;

                    case "colDay20":
                        day = 20;
                        break;

                    case "colDay21":
                        day = 0x15;
                        break;

                    case "colDay22":
                        day = 0x16;
                        break;

                    case "colDay23":
                        day = 0x17;
                        break;

                    case "colDay24":
                        day = 0x18;
                        break;

                    case "colDay25":
                        day = 0x19;
                        break;

                    case "colDay26":
                        day = 0x1a;
                        break;

                    case "colDay27":
                        day = 0x1b;
                        break;

                    case "colDay28":
                        day = 0x1c;
                        break;

                    case "colDay29":
                        day = 0x1d;
                        break;

                    case "colDay30":
                        day = 30;
                        break;

                    case "colDay31":
                        day = 0x1f;
                        break;
                }
                this.m_Date = new System.DateTime(this.m_Year, this.m_Month, day);
                HRM_TIMEKEEPER hrm_timekeeper = new HRM_TIMEKEEPER();
                hrm_timekeeper.Get(this.m_TimeKeeperTableListID, this.m_EmployeeCode, this.m_ShiftCode, this.m_Date, this.m_Symbol);
                this.m_Description = hrm_timekeeper.Description;
            }
            catch
            {
            }
        }

        private void gbList_FocusedRowChanged(object sender, FocusedRowChangedEventArgs e)
        {
            try
            {
                this.m_Symbol = this.gbList.GetFocusedValue().ToString();
                this.m_EmployeeCode = this.gbList.GetFocusedRowCellValue(this.colEmployeeCode).ToString();
                this.GetOldValue(this.m_Symbol);
                HRM_TIMEKEEPER hrm_timekeeper = new HRM_TIMEKEEPER();
                hrm_timekeeper.Get(this.m_TimeKeeperTableListID, this.m_EmployeeCode, this.m_ShiftCode, this.m_Date, this.m_Symbol);
                this.m_Description = hrm_timekeeper.Description;
            }
            catch
            {
            }
        }

        private void gbList_MouseDown(object sender, MouseEventArgs e)
        {
            if (e.Button == MouseButtons.Left)
            {
                base.DoShowMenu(this.gbList.CalcHitInfo(new Point(e.X, e.Y)), this.gbList, this);
            }
        }

        private void gcList_Click(object sender, EventArgs e)
        {
        }

        private void GetOldValue(string Symbol)
        {
            new DIC_SHIFT().Get(this.m_ShiftCode);
            if (Information.IsNumeric(Symbol))
            {
                if (Convert.ToInt32(Symbol) > 0)
                {
                    this.m_OldLateMinute = Convert.ToInt32(Symbol);
                    this.m_OldEarlyMinute = 0;
                }
                else
                {
                    this.m_OldLateMinute = 0;
                    this.m_OldEarlyMinute = -Convert.ToInt32(Symbol);
                }
            }
            else
            {
                string[] strArray = Symbol.Split(new char[] { ':' });
                if (Information.IsNumeric(strArray[0]) && (Convert.ToInt32(strArray[0]) > 0))
                {
                    if (Information.IsNumeric(strArray[1]) && (Convert.ToInt32(strArray[1]) < 0))
                    {
                        this.m_OldLateMinute = Convert.ToInt32(strArray[0]);
                        this.m_OldEarlyMinute = -Convert.ToInt32(strArray[1]);
                    }
                }
                else
                {
                    this.m_OldLateMinute = 0;
                    this.m_OldEarlyMinute = 0;
                }
            }
        }

        private void GridViewLock()
        {
            if ((this.m_Month != 0) && (this.m_Year != 0))
            {
                int numberDay = System.DateTime.DaysInMonth(this.m_Year, this.m_Month);
                this.ShowHideColumn(numberDay);
                for (int i = 1; i <= numberDay; i++)
                {
                    this.gbList.Columns[i + 5].OptionsColumn.ReadOnly = true;
                    this.gbList.Columns[i + 5].OptionsColumn.AllowEdit = false;
                    System.DateTime date = new System.DateTime(this.m_Year, this.m_Month, i);
                    clsTimeKeeperOption option = new clsTimeKeeperOption();
                    if (date.DayOfWeek.ToString() == "Monday")
                    {
                        this.gbList.Columns[i + 5].AppearanceCell.BackColor = option.MondayColor;
                    }
                    else if (date.DayOfWeek.ToString() == "Tuesday")
                    {
                        this.gbList.Columns[i + 5].AppearanceCell.BackColor = option.TuesdayColor;
                    }
                    else if (date.DayOfWeek.ToString() == "Wednesday")
                    {
                        this.gbList.Columns[i + 5].AppearanceCell.BackColor = option.WednesdayColor;
                    }
                    else if (date.DayOfWeek.ToString() == "Thursday")
                    {
                        this.gbList.Columns[i + 5].AppearanceCell.BackColor = option.ThursdayColor;
                    }
                    else if (date.DayOfWeek.ToString() == "Friday")
                    {
                        this.gbList.Columns[i + 5].AppearanceCell.BackColor = option.FridayColor;
                    }
                    else if (date.DayOfWeek.ToString() == "Saturday")
                    {
                        this.gbList.Columns[i + 5].AppearanceCell.BackColor = option.SaturdayColor;
                    }
                    else if (date.DayOfWeek.ToString() == "Sunday")
                    {
                        this.gbList.Columns[i + 5].AppearanceCell.BackColor = option.SundayColor;
                    }
                    DIC_HOLIDAY dic_holiday = new DIC_HOLIDAY();
                    if (dic_holiday.Exist(date))
                    {
                        this.gbList.Columns[i + 5].AppearanceCell.BackColor = option.HolidayColor;
                    }
                    this.gbList.Columns[i + 5].Caption = this.DayName(this.m_Year, this.m_Month, i);
                }
            }
        }

        private void GridViewOpen()
        {
            if ((this.m_Month != 0) && (this.m_Year != 0))
            {
                int numberDay = System.DateTime.DaysInMonth(this.m_Year, this.m_Month);
                this.ShowHideColumn(numberDay);
                for (int i = 1; i <= numberDay; i++)
                {
                    this.gbList.Columns[i + 5].OptionsColumn.ReadOnly = false;
                    this.gbList.Columns[i + 5].OptionsColumn.AllowEdit = true;
                    System.DateTime date = new System.DateTime(this.m_Year, this.m_Month, i);
                    clsTimeKeeperOption option = new clsTimeKeeperOption();
                    if (date.DayOfWeek.ToString() == "Monday")
                    {
                        this.gbList.Columns[i + 5].AppearanceCell.BackColor = option.MondayColor;
                    }
                    else if (date.DayOfWeek.ToString() == "Tuesday")
                    {
                        this.gbList.Columns[i + 5].AppearanceCell.BackColor = option.TuesdayColor;
                    }
                    else if (date.DayOfWeek.ToString() == "Wednesday")
                    {
                        this.gbList.Columns[i + 5].AppearanceCell.BackColor = option.WednesdayColor;
                    }
                    else if (date.DayOfWeek.ToString() == "Thursday")
                    {
                        this.gbList.Columns[i + 5].AppearanceCell.BackColor = option.ThursdayColor;
                    }
                    else if (date.DayOfWeek.ToString() == "Friday")
                    {
                        this.gbList.Columns[i + 5].AppearanceCell.BackColor = option.FridayColor;
                    }
                    else if (date.DayOfWeek.ToString() == "Saturday")
                    {
                        this.gbList.Columns[i + 5].AppearanceCell.BackColor = option.SaturdayColor;
                    }
                    else if (date.DayOfWeek.ToString() == "Sunday")
                    {
                        this.gbList.Columns[i + 5].AppearanceCell.BackColor = option.SundayColor;
                    }
                    DIC_HOLIDAY dic_holiday = new DIC_HOLIDAY();
                    if (dic_holiday.Exist(date))
                    {
                        this.gbList.Columns[i + 5].AppearanceCell.BackColor = option.HolidayColor;
                    }
                    this.gbList.Columns[i + 5].Caption = this.DayName(this.m_Year, this.m_Month, i);
                }
            }
        }

        public void Init()
        {
            //if (MyInfo.Get(MyEncryption.Encrypt("ERP01", "123654", true)) == "OK")
            {
                this.lbCompanyName.Text = this.m_CompanyName = "";// MyInfo.Company;
            }
            this.lbBranchName.Text = "";
            this.lbDepartmentName.Text = "";
            this.lbGroupName.Text = "";
            this.bbeYear.EditValue = this.clsAllOption.MonthDefault;
            this.m_Year = this.clsAllOption.MonthDefault.Year;
            this.xucOrganization1.LoadData();
            this.xucOrganization1.Selected += delegate (object s, HRM.CORE.Organization o) {
                HRM_GROUP hrm_group = new HRM_GROUP();
                HRM_DEPARTMENT hrm_department = new HRM_DEPARTMENT();
                HRM_BRANCH hrm_branch = new HRM_BRANCH();
                if (o.Level == 0)
                {
                    this.LoadGrid(this.m_Level = 0, this.m_Code = "");
                    this.lbCompanyName.Text = this.m_CompanyName;
                    this.lbBranchName.Text = "";
                    this.lbDepartmentName.Text = "";
                    this.lbGroupName.Text = "";
                }
                else if (o.Level == 1)
                {
                    this.LoadGrid(this.m_Level = 1, this.m_Code = o.BranchCode);
                    hrm_branch.Get(o.BranchCode);
                    this.lbCompanyName.Text = "";
                    this.lbBranchName.Text = hrm_branch.BranchName;
                    this.lbDepartmentName.Text = "";
                    this.lbGroupName.Text = "";
                }
                else if (o.Level == 2)
                {
                    this.LoadGrid(this.m_Level = 2, this.m_Code = o.DepartmentCode);
                    hrm_department.Get(o.DepartmentCode);
                    this.lbCompanyName.Text = "";
                    this.lbBranchName.Text = hrm_department.BranchName;
                    this.lbDepartmentName.Text = hrm_department.DepartmentName;
                    this.lbGroupName.Text = "";
                }
                else if (o.Level == 3)
                {
                    this.LoadGrid(this.m_Level = 3, this.m_Code = o.GroupCode);
                    hrm_group.Get(o.GroupCode);
                    hrm_department.Get(hrm_group.DepartmentCode);
                    this.lbCompanyName.Text = "";
                    this.lbBranchName.Text = hrm_department.BranchName;
                    this.lbDepartmentName.Text = hrm_department.DepartmentName;
                    this.lbGroupName.Text = "/ " + hrm_group.GroupName;
                }
            };
            this.xucOrganization1.Updated += o => this.xucOrganization1.LoadData();
            this.dt_Timekeeper = new HRM_TIMEKEEPER().CreateNullDataTable();
            new HRM_TIMEKEEPER_TABLELIST().AddRepositoryGridLookupEditByYear(this.repTimeKeeperList, this.m_Year);
            this.repTimeKeeperList.ButtonClick += new ButtonPressedEventHandler(this.repTimeKeeperList_ButtonClick);
            this.repPopup.PopupControl = this.ppContainerControl;
            this.ppContainerControl.Width = this.xucTimekeepingAdd.Width;
            this.ppContainerControl.Height = this.xucTimekeepingAdd.Height;
            this.ppContainerControl.Controls.Add(this.xucTimekeepingAdd);
            this.xucTimekeepingAdd.Status = Actions.Update;
            this.xucTimekeepingAdd.CancelClick += s => this.ppContainerControl.OwnerEdit.ClosePopup();
            this.xucTimekeepingAdd.Success += delegate (object s, HRM_TIMEKEEPER i) {
                try
                {
                    this.ppContainerControl.OwnerEdit.ClosePopup();
                }
                catch
                {
                }
            };
        }

        private void InitializeComponent()
        {
            this.components = new Container();
            ComponentResourceManager manager = new ComponentResourceManager(typeof(xucTimekeeperTable1));
            SerializableAppearanceObject appearance = new SerializableAppearanceObject();
            MenuButton button = new MenuButton();
            ItemCommand command = new ItemCommand();
            ItemCommand command2 = new ItemCommand();
            ItemCommand command3 = new ItemCommand();
            ItemCommand command4 = new ItemCommand();
            ItemCommand command5 = new ItemCommand();
            ItemCommand command6 = new ItemCommand();
            ItemCommand command7 = new ItemCommand();
            ItemCommand command8 = new ItemCommand();
            ItemCommand command9 = new ItemCommand();
            ItemCommand command10 = new ItemCommand();
            ItemCommand command11 = new ItemCommand();
            ItemCommand command12 = new ItemCommand();
            ItemCommand command13 = new ItemCommand();
            ItemCommand command14 = new ItemCommand();
            ItemCommand command15 = new ItemCommand();
            ItemCommand command16 = new ItemCommand();
            ItemCommand command17 = new ItemCommand();
            ItemCommand command18 = new ItemCommand();
            ItemCommand command19 = new ItemCommand();
            ItemCommand command20 = new ItemCommand();
            ItemCommand command21 = new ItemCommand();
            ItemCommand command22 = new ItemCommand();
            ItemCommand command23 = new ItemCommand();
            ItemCommand command24 = new ItemCommand();
            ItemCommand command25 = new ItemCommand();
            ItemCommand command26 = new ItemCommand();
            ItemCommand command27 = new ItemCommand();
            ItemCommand command28 = new ItemCommand();
            ItemCommand command29 = new ItemCommand();
            StyleFormatCondition condition = new StyleFormatCondition();
            StyleFormatCondition condition2 = new StyleFormatCondition();
            StyleFormatCondition condition3 = new StyleFormatCondition();
            StyleFormatCondition condition4 = new StyleFormatCondition();
            StyleFormatCondition condition5 = new StyleFormatCondition();
            StyleFormatCondition condition6 = new StyleFormatCondition();
            StyleFormatCondition condition7 = new StyleFormatCondition();
            StyleFormatCondition condition8 = new StyleFormatCondition();
            StyleFormatCondition condition9 = new StyleFormatCondition();
            StyleFormatCondition condition10 = new StyleFormatCondition();
            StyleFormatCondition condition11 = new StyleFormatCondition();
            StyleFormatCondition condition12 = new StyleFormatCondition();
            StyleFormatCondition condition13 = new StyleFormatCondition();
            StyleFormatCondition condition14 = new StyleFormatCondition();
            StyleFormatCondition condition15 = new StyleFormatCondition();
            StyleFormatCondition condition16 = new StyleFormatCondition();
            StyleFormatCondition condition17 = new StyleFormatCondition();
            StyleFormatCondition condition18 = new StyleFormatCondition();
            StyleFormatCondition condition19 = new StyleFormatCondition();
            StyleFormatCondition condition20 = new StyleFormatCondition();
            StyleFormatCondition condition21 = new StyleFormatCondition();
            StyleFormatCondition condition22 = new StyleFormatCondition();
            StyleFormatCondition condition23 = new StyleFormatCondition();
            StyleFormatCondition condition24 = new StyleFormatCondition();
            StyleFormatCondition condition25 = new StyleFormatCondition();
            StyleFormatCondition condition26 = new StyleFormatCondition();
            StyleFormatCondition condition27 = new StyleFormatCondition();
            StyleFormatCondition condition28 = new StyleFormatCondition();
            StyleFormatCondition condition29 = new StyleFormatCondition();
            StyleFormatCondition condition30 = new StyleFormatCondition();
            StyleFormatCondition condition31 = new StyleFormatCondition();
            this.colDay1 = new GridColumn();
            this.repPopup = new RepositoryItemPopupContainerEdit();
            this.colDay2 = new GridColumn();
            this.colDay3 = new GridColumn();
            this.colDay4 = new GridColumn();
            this.colDay5 = new GridColumn();
            this.colDay6 = new GridColumn();
            this.colDay7 = new GridColumn();
            this.colDay8 = new GridColumn();
            this.colDay9 = new GridColumn();
            this.colDay10 = new GridColumn();
            this.colDay11 = new GridColumn();
            this.colDay12 = new GridColumn();
            this.colDay13 = new GridColumn();
            this.colDay14 = new GridColumn();
            this.colDay15 = new GridColumn();
            this.colDay16 = new GridColumn();
            this.colDay17 = new GridColumn();
            this.colDay18 = new GridColumn();
            this.colDay19 = new GridColumn();
            this.colDay20 = new GridColumn();
            this.colDay21 = new GridColumn();
            this.colDay22 = new GridColumn();
            this.colDay23 = new GridColumn();
            this.colDay24 = new GridColumn();
            this.colDay25 = new GridColumn();
            this.colDay26 = new GridColumn();
            this.colDay27 = new GridColumn();
            this.colDay28 = new GridColumn();
            this.colDay29 = new GridColumn();
            this.colDay30 = new GridColumn();
            this.colDay31 = new GridColumn();
            this.barManager1 = new BarManager(this.components);
            this.bar1 = new Bar();
            this.bbeTimeKeeperTableListName = new BarEditItem();
            this.repTimeKeeperList = new RepositoryItemGridLookUpEdit();
            this.repositoryItemGridLookUpEdit2View = new GridView();
            this.gridColumn1 = new GridColumn();
            this.bbeYear = new BarEditItem();
            this.repYear = new RepositoryItemTimeEdit();
            this.bbiPrint = new BarButtonItem();
            this.bbiSave = new BarButtonItem();
            this.bbiExport = new BarButtonItem();
            this.bbiLock = new BarButtonItem();
            this.bbiOpen = new BarButtonItem();
            this.bbiFinish = new BarButtonItem();
            this.bbiInsertSymbol = new BarButtonItem();
            this.bbiRefresh = new BarButtonItem();
            this.bbiClose = new BarButtonItem();
            this.barDockControlTop = new BarDockControl();
            this.barDockControlBottom = new BarDockControl();
            this.barDockControlLeft = new BarDockControl();
            this.barDockControlRight = new BarDockControl();
            this.dockManager1 = new DockManager(this.components);
            this.hideContainerLeft = new AutoHideContainer();
            this.dockPanel1 = new DockPanel();
            this.dockPanel1_Container = new ControlContainer();
            this.xucOrganization1 = new xucOrganization();
            this.hideContainerBottom = new AutoHideContainer();
            this.dpFooter = new DockPanel();
            this.dockPanel2_Container = new ControlContainer();
            this.imageCollection2 = new DevExpress.Utils.ImageCollection(this.components);
            this.barButtonItem1 = new BarButtonItem();
            this.bbiTimekeeperTableHour = new BarButtonItem();
            this.bbiTimekeeperTable = new BarButtonItem();
            this.bbiTimekeeperExtraPrivate = new BarButtonItem();
            this.gcList = new GridControl();
            this.gbList = new GridView();
            this.colEmployeeCode = new GridColumn();
            this.colFirstName = new GridColumn();
            this.colLastName = new GridColumn();
            this.colBranchName = new GridColumn();
            this.colDepartmentName = new GridColumn();
            this.colGroupName = new GridColumn();
            this.colWorkTotal = new GridColumn();
            this.colRealDay = new GridColumn();
            this.colNotRealDay = new GridColumn();
            this.colRegulationDay = new GridColumn();
            this.colFurloughDay = new GridColumn();
            this.colCompensationDay = new GridColumn();
            this.colAbsent = new GridColumn();
            this.colAbsentWOL = new GridColumn();
            this.colAbsentL = new GridColumn();
            this.colClockingError = new GridColumn();
            this.colClockingErrorBegin = new GridColumn();
            this.colClockingErrorEnd = new GridColumn();
            this.colTotalHour = new GridColumn();
            this.colLateMinute = new GridColumn();
            this.colEarlyMinute = new GridColumn();
            this.colNightDutyDay = new GridColumn();
            this.colExtraHour = new GridColumn();
            this.colPrivateHour = new GridColumn();
            this.panelControl1 = new PanelControl();
            this.flowLayoutPanel3 = new FlowLayoutPanel();
            this.xucExpandCollapseButton1 = new xucExpandCollapseButton();
            this.lbGroupName = new LabelControl();
            this.lbDepartmentName = new LabelControl();
            this.flowLayoutPanel2 = new FlowLayoutPanel();
            this.lbBranchName = new LabelControl();
            this.lbCompanyName = new LabelControl();
            this.flowLayoutPanel1 = new FlowLayoutPanel();
            this.simpleButton1 = new SimpleButton();
            this.lbTimeKeeperName = new LabelControl();
            this.ptLock = new PictureBox();
            this.ptFinish = new PictureBox();
            this.lbMessage = new LabelControl();
            this.popupMenu1 = new PopupMenu(this.components);
            this.repPopup.BeginInit();
            this.barManager1.BeginInit();
            this.repTimeKeeperList.BeginInit();
            this.repositoryItemGridLookUpEdit2View.BeginInit();
            this.repYear.BeginInit();
            this.dockManager1.BeginInit();
            this.hideContainerLeft.SuspendLayout();
            this.dockPanel1.SuspendLayout();
            this.dockPanel1_Container.SuspendLayout();
            this.hideContainerBottom.SuspendLayout();
            this.dpFooter.SuspendLayout();
            this.imageCollection2.BeginInit();
            this.gcList.BeginInit();
            this.gbList.BeginInit();
            this.panelControl1.BeginInit();
            this.panelControl1.SuspendLayout();
            this.flowLayoutPanel3.SuspendLayout();
            this.flowLayoutPanel2.SuspendLayout();
            this.flowLayoutPanel1.SuspendLayout();
            ((ISupportInitialize) this.ptLock).BeginInit();
            ((ISupportInitialize) this.ptFinish).BeginInit();
            this.popupMenu1.BeginInit();
            base.SuspendLayout();
            this.colDay1.AppearanceCell.BackColor = SystemColors.Info;
            this.colDay1.AppearanceCell.Options.UseBackColor = true;
            this.colDay1.AppearanceCell.Options.UseTextOptions = true;
            this.colDay1.AppearanceCell.TextOptions.HAlignment = HorzAlignment.Center;
            this.colDay1.Caption = "1";
            this.colDay1.ColumnEdit = this.repPopup;
            this.colDay1.FieldName = "D1";
            this.colDay1.MinWidth = 0x23;
            this.colDay1.Name = "colDay1";
            this.colDay1.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colDay1.OptionsColumn.ReadOnly = true;
            this.colDay1.Visible = true;
            this.colDay1.VisibleIndex = 3;
            this.colDay1.Width = 0x23;
            this.repPopup.AutoHeight = false;
            this.repPopup.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) });
            this.repPopup.Name = "repPopup";
            this.repPopup.PopupSizeable = false;
            this.repPopup.TextEditStyle = TextEditStyles.Standard;
            this.repPopup.Popup += new EventHandler(this.repPopup_Popup);
            this.colDay2.AppearanceCell.BackColor = Color.SeaShell;
            this.colDay2.AppearanceCell.Options.UseBackColor = true;
            this.colDay2.AppearanceCell.Options.UseTextOptions = true;
            this.colDay2.AppearanceCell.TextOptions.HAlignment = HorzAlignment.Center;
            this.colDay2.Caption = "2";
            this.colDay2.ColumnEdit = this.repPopup;
            this.colDay2.FieldName = "D2";
            this.colDay2.MinWidth = 0x23;
            this.colDay2.Name = "colDay2";
            this.colDay2.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colDay2.OptionsColumn.ReadOnly = true;
            this.colDay2.Visible = true;
            this.colDay2.VisibleIndex = 4;
            this.colDay2.Width = 0x23;
            this.colDay3.AppearanceCell.BackColor = SystemColors.Info;
            this.colDay3.AppearanceCell.Options.UseBackColor = true;
            this.colDay3.AppearanceCell.Options.UseTextOptions = true;
            this.colDay3.AppearanceCell.TextOptions.HAlignment = HorzAlignment.Center;
            this.colDay3.Caption = "3";
            this.colDay3.ColumnEdit = this.repPopup;
            this.colDay3.FieldName = "D3";
            this.colDay3.MinWidth = 0x23;
            this.colDay3.Name = "colDay3";
            this.colDay3.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colDay3.OptionsColumn.ReadOnly = true;
            this.colDay3.Visible = true;
            this.colDay3.VisibleIndex = 5;
            this.colDay3.Width = 0x23;
            this.colDay4.AppearanceCell.BackColor = Color.SeaShell;
            this.colDay4.AppearanceCell.Options.UseBackColor = true;
            this.colDay4.AppearanceCell.Options.UseTextOptions = true;
            this.colDay4.AppearanceCell.TextOptions.HAlignment = HorzAlignment.Center;
            this.colDay4.Caption = "4";
            this.colDay4.ColumnEdit = this.repPopup;
            this.colDay4.FieldName = "D4";
            this.colDay4.MinWidth = 0x23;
            this.colDay4.Name = "colDay4";
            this.colDay4.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colDay4.OptionsColumn.ReadOnly = true;
            this.colDay4.Visible = true;
            this.colDay4.VisibleIndex = 6;
            this.colDay4.Width = 0x23;
            this.colDay5.AppearanceCell.BackColor = SystemColors.Info;
            this.colDay5.AppearanceCell.Options.UseBackColor = true;
            this.colDay5.AppearanceCell.Options.UseTextOptions = true;
            this.colDay5.AppearanceCell.TextOptions.HAlignment = HorzAlignment.Center;
            this.colDay5.Caption = "5";
            this.colDay5.ColumnEdit = this.repPopup;
            this.colDay5.FieldName = "D5";
            this.colDay5.MinWidth = 0x23;
            this.colDay5.Name = "colDay5";
            this.colDay5.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colDay5.OptionsColumn.ReadOnly = true;
            this.colDay5.Visible = true;
            this.colDay5.VisibleIndex = 7;
            this.colDay5.Width = 0x23;
            this.colDay6.AppearanceCell.BackColor = Color.SeaShell;
            this.colDay6.AppearanceCell.Options.UseBackColor = true;
            this.colDay6.AppearanceCell.Options.UseTextOptions = true;
            this.colDay6.AppearanceCell.TextOptions.HAlignment = HorzAlignment.Center;
            this.colDay6.Caption = "6";
            this.colDay6.ColumnEdit = this.repPopup;
            this.colDay6.FieldName = "D6";
            this.colDay6.MinWidth = 0x23;
            this.colDay6.Name = "colDay6";
            this.colDay6.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colDay6.OptionsColumn.ReadOnly = true;
            this.colDay6.Visible = true;
            this.colDay6.VisibleIndex = 8;
            this.colDay6.Width = 0x23;
            this.colDay7.AppearanceCell.BackColor = SystemColors.Info;
            this.colDay7.AppearanceCell.Options.UseBackColor = true;
            this.colDay7.AppearanceCell.Options.UseTextOptions = true;
            this.colDay7.AppearanceCell.TextOptions.HAlignment = HorzAlignment.Center;
            this.colDay7.Caption = "7";
            this.colDay7.ColumnEdit = this.repPopup;
            this.colDay7.FieldName = "D7";
            this.colDay7.MinWidth = 0x23;
            this.colDay7.Name = "colDay7";
            this.colDay7.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colDay7.OptionsColumn.ReadOnly = true;
            this.colDay7.Visible = true;
            this.colDay7.VisibleIndex = 9;
            this.colDay7.Width = 0x23;
            this.colDay8.AppearanceCell.BackColor = Color.SeaShell;
            this.colDay8.AppearanceCell.Options.UseBackColor = true;
            this.colDay8.AppearanceCell.Options.UseTextOptions = true;
            this.colDay8.AppearanceCell.TextOptions.HAlignment = HorzAlignment.Center;
            this.colDay8.Caption = "8";
            this.colDay8.ColumnEdit = this.repPopup;
            this.colDay8.FieldName = "D8";
            this.colDay8.MinWidth = 0x23;
            this.colDay8.Name = "colDay8";
            this.colDay8.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colDay8.OptionsColumn.ReadOnly = true;
            this.colDay8.Visible = true;
            this.colDay8.VisibleIndex = 10;
            this.colDay8.Width = 0x23;
            this.colDay9.AppearanceCell.BackColor = SystemColors.Info;
            this.colDay9.AppearanceCell.Options.UseBackColor = true;
            this.colDay9.AppearanceCell.Options.UseTextOptions = true;
            this.colDay9.AppearanceCell.TextOptions.HAlignment = HorzAlignment.Center;
            this.colDay9.Caption = "9";
            this.colDay9.ColumnEdit = this.repPopup;
            this.colDay9.FieldName = "D9";
            this.colDay9.MinWidth = 0x23;
            this.colDay9.Name = "colDay9";
            this.colDay9.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colDay9.OptionsColumn.ReadOnly = true;
            this.colDay9.Visible = true;
            this.colDay9.VisibleIndex = 11;
            this.colDay9.Width = 0x23;
            this.colDay10.AppearanceCell.BackColor = Color.SeaShell;
            this.colDay10.AppearanceCell.Options.UseBackColor = true;
            this.colDay10.AppearanceCell.Options.UseTextOptions = true;
            this.colDay10.AppearanceCell.TextOptions.HAlignment = HorzAlignment.Center;
            this.colDay10.Caption = "10";
            this.colDay10.ColumnEdit = this.repPopup;
            this.colDay10.FieldName = "D10";
            this.colDay10.MinWidth = 0x23;
            this.colDay10.Name = "colDay10";
            this.colDay10.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colDay10.OptionsColumn.ReadOnly = true;
            this.colDay10.Visible = true;
            this.colDay10.VisibleIndex = 12;
            this.colDay10.Width = 0x23;
            this.colDay11.AppearanceCell.BackColor = SystemColors.Info;
            this.colDay11.AppearanceCell.Options.UseBackColor = true;
            this.colDay11.AppearanceCell.Options.UseTextOptions = true;
            this.colDay11.AppearanceCell.TextOptions.HAlignment = HorzAlignment.Center;
            this.colDay11.Caption = "11";
            this.colDay11.ColumnEdit = this.repPopup;
            this.colDay11.FieldName = "D11";
            this.colDay11.MinWidth = 0x23;
            this.colDay11.Name = "colDay11";
            this.colDay11.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colDay11.OptionsColumn.ReadOnly = true;
            this.colDay11.Visible = true;
            this.colDay11.VisibleIndex = 13;
            this.colDay11.Width = 0x23;
            this.colDay12.AppearanceCell.BackColor = Color.SeaShell;
            this.colDay12.AppearanceCell.Options.UseBackColor = true;
            this.colDay12.AppearanceCell.Options.UseTextOptions = true;
            this.colDay12.AppearanceCell.TextOptions.HAlignment = HorzAlignment.Center;
            this.colDay12.Caption = "12";
            this.colDay12.ColumnEdit = this.repPopup;
            this.colDay12.FieldName = "D12";
            this.colDay12.MinWidth = 0x23;
            this.colDay12.Name = "colDay12";
            this.colDay12.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colDay12.OptionsColumn.ReadOnly = true;
            this.colDay12.Visible = true;
            this.colDay12.VisibleIndex = 14;
            this.colDay12.Width = 0x23;
            this.colDay13.AppearanceCell.BackColor = SystemColors.Info;
            this.colDay13.AppearanceCell.Options.UseBackColor = true;
            this.colDay13.AppearanceCell.Options.UseTextOptions = true;
            this.colDay13.AppearanceCell.TextOptions.HAlignment = HorzAlignment.Center;
            this.colDay13.Caption = "13";
            this.colDay13.ColumnEdit = this.repPopup;
            this.colDay13.FieldName = "D13";
            this.colDay13.MinWidth = 0x23;
            this.colDay13.Name = "colDay13";
            this.colDay13.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colDay13.OptionsColumn.ReadOnly = true;
            this.colDay13.Visible = true;
            this.colDay13.VisibleIndex = 15;
            this.colDay13.Width = 0x23;
            this.colDay14.AppearanceCell.BackColor = Color.SeaShell;
            this.colDay14.AppearanceCell.Options.UseBackColor = true;
            this.colDay14.AppearanceCell.Options.UseTextOptions = true;
            this.colDay14.AppearanceCell.TextOptions.HAlignment = HorzAlignment.Center;
            this.colDay14.Caption = "14";
            this.colDay14.ColumnEdit = this.repPopup;
            this.colDay14.FieldName = "D14";
            this.colDay14.MinWidth = 0x23;
            this.colDay14.Name = "colDay14";
            this.colDay14.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colDay14.OptionsColumn.ReadOnly = true;
            this.colDay14.Visible = true;
            this.colDay14.VisibleIndex = 0x10;
            this.colDay14.Width = 0x23;
            this.colDay15.AppearanceCell.BackColor = SystemColors.Info;
            this.colDay15.AppearanceCell.Options.UseBackColor = true;
            this.colDay15.AppearanceCell.Options.UseTextOptions = true;
            this.colDay15.AppearanceCell.TextOptions.HAlignment = HorzAlignment.Center;
            this.colDay15.Caption = "15";
            this.colDay15.ColumnEdit = this.repPopup;
            this.colDay15.FieldName = "D15";
            this.colDay15.MinWidth = 0x23;
            this.colDay15.Name = "colDay15";
            this.colDay15.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colDay15.OptionsColumn.ReadOnly = true;
            this.colDay15.Visible = true;
            this.colDay15.VisibleIndex = 0x11;
            this.colDay15.Width = 0x23;
            this.colDay16.AppearanceCell.BackColor = Color.SeaShell;
            this.colDay16.AppearanceCell.Options.UseBackColor = true;
            this.colDay16.AppearanceCell.Options.UseTextOptions = true;
            this.colDay16.AppearanceCell.TextOptions.HAlignment = HorzAlignment.Center;
            this.colDay16.Caption = "16";
            this.colDay16.ColumnEdit = this.repPopup;
            this.colDay16.FieldName = "D16";
            this.colDay16.MinWidth = 0x23;
            this.colDay16.Name = "colDay16";
            this.colDay16.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colDay16.OptionsColumn.ReadOnly = true;
            this.colDay16.Visible = true;
            this.colDay16.VisibleIndex = 0x12;
            this.colDay16.Width = 0x23;
            this.colDay17.AppearanceCell.BackColor = SystemColors.Info;
            this.colDay17.AppearanceCell.Options.UseBackColor = true;
            this.colDay17.AppearanceCell.Options.UseTextOptions = true;
            this.colDay17.AppearanceCell.TextOptions.HAlignment = HorzAlignment.Center;
            this.colDay17.Caption = "17";
            this.colDay17.ColumnEdit = this.repPopup;
            this.colDay17.FieldName = "D17";
            this.colDay17.MinWidth = 0x23;
            this.colDay17.Name = "colDay17";
            this.colDay17.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colDay17.OptionsColumn.ReadOnly = true;
            this.colDay17.Visible = true;
            this.colDay17.VisibleIndex = 0x13;
            this.colDay17.Width = 0x23;
            this.colDay18.AppearanceCell.BackColor = Color.SeaShell;
            this.colDay18.AppearanceCell.Options.UseBackColor = true;
            this.colDay18.AppearanceCell.Options.UseTextOptions = true;
            this.colDay18.AppearanceCell.TextOptions.HAlignment = HorzAlignment.Center;
            this.colDay18.Caption = "18";
            this.colDay18.ColumnEdit = this.repPopup;
            this.colDay18.FieldName = "D18";
            this.colDay18.MinWidth = 0x23;
            this.colDay18.Name = "colDay18";
            this.colDay18.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colDay18.OptionsColumn.ReadOnly = true;
            this.colDay18.Visible = true;
            this.colDay18.VisibleIndex = 20;
            this.colDay18.Width = 0x23;
            this.colDay19.AppearanceCell.BackColor = SystemColors.Info;
            this.colDay19.AppearanceCell.Options.UseBackColor = true;
            this.colDay19.AppearanceCell.Options.UseTextOptions = true;
            this.colDay19.AppearanceCell.TextOptions.HAlignment = HorzAlignment.Center;
            this.colDay19.Caption = "19";
            this.colDay19.ColumnEdit = this.repPopup;
            this.colDay19.FieldName = "D19";
            this.colDay19.MinWidth = 0x23;
            this.colDay19.Name = "colDay19";
            this.colDay19.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colDay19.OptionsColumn.ReadOnly = true;
            this.colDay19.Visible = true;
            this.colDay19.VisibleIndex = 0x15;
            this.colDay19.Width = 0x23;
            this.colDay20.AppearanceCell.BackColor = Color.SeaShell;
            this.colDay20.AppearanceCell.Options.UseBackColor = true;
            this.colDay20.AppearanceCell.Options.UseTextOptions = true;
            this.colDay20.AppearanceCell.TextOptions.HAlignment = HorzAlignment.Center;
            this.colDay20.Caption = "20";
            this.colDay20.ColumnEdit = this.repPopup;
            this.colDay20.FieldName = "D20";
            this.colDay20.MinWidth = 0x23;
            this.colDay20.Name = "colDay20";
            this.colDay20.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colDay20.OptionsColumn.ReadOnly = true;
            this.colDay20.Visible = true;
            this.colDay20.VisibleIndex = 0x16;
            this.colDay20.Width = 0x23;
            this.colDay21.AppearanceCell.BackColor = SystemColors.Info;
            this.colDay21.AppearanceCell.Options.UseBackColor = true;
            this.colDay21.AppearanceCell.Options.UseTextOptions = true;
            this.colDay21.AppearanceCell.TextOptions.HAlignment = HorzAlignment.Center;
            this.colDay21.Caption = "21";
            this.colDay21.ColumnEdit = this.repPopup;
            this.colDay21.FieldName = "D21";
            this.colDay21.MinWidth = 0x23;
            this.colDay21.Name = "colDay21";
            this.colDay21.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colDay21.OptionsColumn.ReadOnly = true;
            this.colDay21.Visible = true;
            this.colDay21.VisibleIndex = 0x17;
            this.colDay21.Width = 0x23;
            this.colDay22.AppearanceCell.BackColor = Color.SeaShell;
            this.colDay22.AppearanceCell.Options.UseBackColor = true;
            this.colDay22.AppearanceCell.Options.UseTextOptions = true;
            this.colDay22.AppearanceCell.TextOptions.HAlignment = HorzAlignment.Center;
            this.colDay22.Caption = "22";
            this.colDay22.ColumnEdit = this.repPopup;
            this.colDay22.FieldName = "D22";
            this.colDay22.MinWidth = 0x23;
            this.colDay22.Name = "colDay22";
            this.colDay22.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colDay22.OptionsColumn.ReadOnly = true;
            this.colDay22.Visible = true;
            this.colDay22.VisibleIndex = 0x18;
            this.colDay22.Width = 0x23;
            this.colDay23.AppearanceCell.BackColor = SystemColors.Info;
            this.colDay23.AppearanceCell.Options.UseBackColor = true;
            this.colDay23.AppearanceCell.Options.UseTextOptions = true;
            this.colDay23.AppearanceCell.TextOptions.HAlignment = HorzAlignment.Center;
            this.colDay23.Caption = "23";
            this.colDay23.ColumnEdit = this.repPopup;
            this.colDay23.FieldName = "D23";
            this.colDay23.MinWidth = 0x23;
            this.colDay23.Name = "colDay23";
            this.colDay23.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colDay23.OptionsColumn.ReadOnly = true;
            this.colDay23.Visible = true;
            this.colDay23.VisibleIndex = 0x19;
            this.colDay23.Width = 0x23;
            this.colDay24.AppearanceCell.BackColor = Color.SeaShell;
            this.colDay24.AppearanceCell.Options.UseBackColor = true;
            this.colDay24.AppearanceCell.Options.UseTextOptions = true;
            this.colDay24.AppearanceCell.TextOptions.HAlignment = HorzAlignment.Center;
            this.colDay24.Caption = "24";
            this.colDay24.ColumnEdit = this.repPopup;
            this.colDay24.FieldName = "D24";
            this.colDay24.MinWidth = 0x23;
            this.colDay24.Name = "colDay24";
            this.colDay24.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colDay24.OptionsColumn.ReadOnly = true;
            this.colDay24.Visible = true;
            this.colDay24.VisibleIndex = 0x1a;
            this.colDay24.Width = 0x23;
            this.colDay25.AppearanceCell.BackColor = SystemColors.Info;
            this.colDay25.AppearanceCell.Options.UseBackColor = true;
            this.colDay25.AppearanceCell.Options.UseTextOptions = true;
            this.colDay25.AppearanceCell.TextOptions.HAlignment = HorzAlignment.Center;
            this.colDay25.Caption = "25";
            this.colDay25.ColumnEdit = this.repPopup;
            this.colDay25.FieldName = "D25";
            this.colDay25.MinWidth = 0x23;
            this.colDay25.Name = "colDay25";
            this.colDay25.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colDay25.OptionsColumn.ReadOnly = true;
            this.colDay25.Visible = true;
            this.colDay25.VisibleIndex = 0x1b;
            this.colDay25.Width = 0x23;
            this.colDay26.AppearanceCell.BackColor = Color.SeaShell;
            this.colDay26.AppearanceCell.Options.UseBackColor = true;
            this.colDay26.AppearanceCell.Options.UseTextOptions = true;
            this.colDay26.AppearanceCell.TextOptions.HAlignment = HorzAlignment.Center;
            this.colDay26.Caption = "26";
            this.colDay26.ColumnEdit = this.repPopup;
            this.colDay26.FieldName = "D26";
            this.colDay26.MinWidth = 0x23;
            this.colDay26.Name = "colDay26";
            this.colDay26.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colDay26.OptionsColumn.ReadOnly = true;
            this.colDay26.Visible = true;
            this.colDay26.VisibleIndex = 0x1c;
            this.colDay26.Width = 0x23;
            this.colDay27.AppearanceCell.BackColor = SystemColors.Info;
            this.colDay27.AppearanceCell.Options.UseBackColor = true;
            this.colDay27.AppearanceCell.Options.UseTextOptions = true;
            this.colDay27.AppearanceCell.TextOptions.HAlignment = HorzAlignment.Center;
            this.colDay27.Caption = "27";
            this.colDay27.ColumnEdit = this.repPopup;
            this.colDay27.FieldName = "D27";
            this.colDay27.MinWidth = 0x23;
            this.colDay27.Name = "colDay27";
            this.colDay27.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colDay27.OptionsColumn.ReadOnly = true;
            this.colDay27.Visible = true;
            this.colDay27.VisibleIndex = 0x1d;
            this.colDay27.Width = 0x23;
            this.colDay28.AppearanceCell.BackColor = Color.SeaShell;
            this.colDay28.AppearanceCell.Options.UseBackColor = true;
            this.colDay28.AppearanceCell.Options.UseTextOptions = true;
            this.colDay28.AppearanceCell.TextOptions.HAlignment = HorzAlignment.Center;
            this.colDay28.Caption = "28";
            this.colDay28.ColumnEdit = this.repPopup;
            this.colDay28.FieldName = "D28";
            this.colDay28.MinWidth = 0x23;
            this.colDay28.Name = "colDay28";
            this.colDay28.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colDay28.OptionsColumn.ReadOnly = true;
            this.colDay28.Visible = true;
            this.colDay28.VisibleIndex = 30;
            this.colDay28.Width = 0x23;
            this.colDay29.AppearanceCell.BackColor = SystemColors.Info;
            this.colDay29.AppearanceCell.Options.UseBackColor = true;
            this.colDay29.AppearanceCell.Options.UseTextOptions = true;
            this.colDay29.AppearanceCell.TextOptions.HAlignment = HorzAlignment.Center;
            this.colDay29.Caption = "29";
            this.colDay29.ColumnEdit = this.repPopup;
            this.colDay29.FieldName = "D29";
            this.colDay29.MinWidth = 0x23;
            this.colDay29.Name = "colDay29";
            this.colDay29.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colDay29.OptionsColumn.ReadOnly = true;
            this.colDay29.Visible = true;
            this.colDay29.VisibleIndex = 0x1f;
            this.colDay29.Width = 0x23;
            this.colDay30.AppearanceCell.BackColor = Color.SeaShell;
            this.colDay30.AppearanceCell.Options.UseBackColor = true;
            this.colDay30.AppearanceCell.Options.UseTextOptions = true;
            this.colDay30.AppearanceCell.TextOptions.HAlignment = HorzAlignment.Center;
            this.colDay30.Caption = "30";
            this.colDay30.ColumnEdit = this.repPopup;
            this.colDay30.FieldName = "D30";
            this.colDay30.MinWidth = 0x23;
            this.colDay30.Name = "colDay30";
            this.colDay30.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colDay30.OptionsColumn.ReadOnly = true;
            this.colDay30.Visible = true;
            this.colDay30.VisibleIndex = 0x20;
            this.colDay30.Width = 0x23;
            this.colDay31.AppearanceCell.BackColor = SystemColors.Info;
            this.colDay31.AppearanceCell.Options.UseBackColor = true;
            this.colDay31.AppearanceCell.Options.UseTextOptions = true;
            this.colDay31.AppearanceCell.TextOptions.HAlignment = HorzAlignment.Center;
            this.colDay31.Caption = "31";
            this.colDay31.ColumnEdit = this.repPopup;
            this.colDay31.FieldName = "D31";
            this.colDay31.MinWidth = 0x23;
            this.colDay31.Name = "colDay31";
            this.colDay31.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colDay31.OptionsColumn.ReadOnly = true;
            this.colDay31.Visible = true;
            this.colDay31.VisibleIndex = 0x21;
            this.colDay31.Width = 0x23;
            this.barManager1.Bars.AddRange(new Bar[] { this.bar1 });
            this.barManager1.DockControls.Add(this.barDockControlTop);
            this.barManager1.DockControls.Add(this.barDockControlBottom);
            this.barManager1.DockControls.Add(this.barDockControlLeft);
            this.barManager1.DockControls.Add(this.barDockControlRight);
            this.barManager1.DockManager = this.dockManager1;
            this.barManager1.Form = this;
            this.barManager1.Images = this.imageCollection2;
            this.barManager1.Items.AddRange(new BarItem[] { this.bbiExport, this.bbiPrint, this.bbiSave, this.bbiRefresh, this.bbiFinish, this.bbeTimeKeeperTableListName, this.bbiClose, this.bbiLock, this.bbiOpen, this.barButtonItem1, this.bbeYear, this.bbiInsertSymbol, this.bbiTimekeeperTableHour, this.bbiTimekeeperTable, this.bbiTimekeeperExtraPrivate });
            this.barManager1.MaxItemId = 0x18;
            this.barManager1.RepositoryItems.AddRange(new RepositoryItem[] { this.repTimeKeeperList, this.repYear });
            this.bar1.BarName = "Tools";
            this.bar1.DockCol = 0;
            this.bar1.DockRow = 0;
            this.bar1.DockStyle = BarDockStyle.Top;
            this.bar1.LinksPersistInfo.AddRange(new LinkPersistInfo[] { new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbeTimeKeeperTableListName, "", true, true, true, 0, null, BarItemPaintStyle.CaptionGlyph), new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbeYear, "", true, true, true, 0, null, BarItemPaintStyle.CaptionGlyph), new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbiPrint, "", true, true, true, 0, null, BarItemPaintStyle.CaptionGlyph), new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbiSave, BarItemPaintStyle.CaptionGlyph), new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbiExport, BarItemPaintStyle.CaptionGlyph), new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbiLock, "", true, true, true, 0, null, BarItemPaintStyle.CaptionGlyph), new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbiOpen, BarItemPaintStyle.CaptionGlyph), new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbiFinish, BarItemPaintStyle.CaptionGlyph), new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbiInsertSymbol, "", true, true, true, 0, null, BarItemPaintStyle.CaptionGlyph), new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbiRefresh, BarItemPaintStyle.CaptionGlyph), new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbiClose, BarItemPaintStyle.CaptionGlyph) });
            this.bar1.OptionsBar.UseWholeRow = true;
            this.bar1.Text = "Tools";
            this.bbeTimeKeeperTableListName.Caption = "T\x00ean bảng chấm c\x00f4ng:";
            this.bbeTimeKeeperTableListName.Edit = this.repTimeKeeperList;
            this.bbeTimeKeeperTableListName.Id = 12;
            this.bbeTimeKeeperTableListName.Name = "bbeTimeKeeperTableListName";
            this.bbeTimeKeeperTableListName.Width = 160;
            this.bbeTimeKeeperTableListName.EditValueChanged += new EventHandler(this.bbeTimeKeeperTableListName_EditValueChanged);
            this.repTimeKeeperList.Appearance.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            this.repTimeKeeperList.Appearance.Options.UseFont = true;
            this.repTimeKeeperList.AutoHeight = false;
            this.repTimeKeeperList.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo), new EditorButton(ButtonPredefines.Glyph, "", -1, true, true, false, ImageLocation.MiddleCenter, (Image) manager.GetObject("repTimeKeeperList.Buttons"), new KeyShortcut(Keys.None), appearance, "", null, null, true) });
            this.repTimeKeeperList.Name = "repTimeKeeperList";
            this.repTimeKeeperList.NullText = "[Chọn bảng chấm c\x00f4ng]";
            this.repTimeKeeperList.View = this.repositoryItemGridLookUpEdit2View;
            this.repTimeKeeperList.EditValueChanging += new ChangingEventHandler(this.repTimeKeeperList_EditValueChanging);
            this.repTimeKeeperList.EditValueChanged += new EventHandler(this.repTimeKeeperList_EditValueChanged);
            this.repositoryItemGridLookUpEdit2View.Columns.AddRange(new GridColumn[] { this.gridColumn1 });
            this.repositoryItemGridLookUpEdit2View.FocusRectStyle = DrawFocusRectStyle.RowFocus;
            this.repositoryItemGridLookUpEdit2View.Name = "repositoryItemGridLookUpEdit2View";
            this.repositoryItemGridLookUpEdit2View.OptionsSelection.EnableAppearanceFocusedCell = false;
            this.repositoryItemGridLookUpEdit2View.OptionsView.ShowGroupPanel = false;
            this.gridColumn1.Caption = "T\x00ean bảng chấm c\x00f4ng";
            this.gridColumn1.FieldName = "TimeKeeperTableListName";
            this.gridColumn1.Name = "gridColumn1";
            this.gridColumn1.Visible = true;
            this.gridColumn1.VisibleIndex = 0;
            this.bbeYear.Caption = "Lọc theo năm:";
            this.bbeYear.Edit = this.repYear;
            this.bbeYear.Id = 0x13;
            this.bbeYear.Name = "bbeYear";
            this.bbeYear.Width = 60;
            this.bbeYear.EditValueChanged += new EventHandler(this.bbeYear_EditValueChanged);
            this.repYear.Appearance.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            this.repYear.Appearance.Options.UseFont = true;
            this.repYear.AutoHeight = false;
            this.repYear.Buttons.AddRange(new EditorButton[] { new EditorButton() });
            this.repYear.Mask.EditMask = "yyyy";
            this.repYear.Name = "repYear";
            this.bbiPrint.Caption = "In";
            this.bbiPrint.Id = 7;
            this.bbiPrint.ImageIndex = 9;
            this.bbiPrint.Name = "bbiPrint";
            this.bbiPrint.ItemClick += new ItemClickEventHandler(this.bbiPrint_ItemClick);
            this.bbiSave.Caption = "Lưu";
            this.bbiSave.Id = 8;
            this.bbiSave.ImageIndex = 10;
            this.bbiSave.Name = "bbiSave";
            this.bbiSave.Visibility = BarItemVisibility.Never;
            this.bbiSave.ItemClick += new ItemClickEventHandler(this.bbiSave_ItemClick);
            this.bbiExport.Caption = "Xuất";
            this.bbiExport.Id = 4;
            this.bbiExport.ImageIndex = 0x31;
            this.bbiExport.Name = "bbiExport";
            this.bbiExport.ItemClick += new ItemClickEventHandler(this.bbiExport_ItemClick);
            this.bbiLock.Caption = "Kh\x00f3a Sổ";
            this.bbiLock.Enabled = false;
            this.bbiLock.Id = 14;
            this.bbiLock.ImageIndex = 12;
            this.bbiLock.Name = "bbiLock";
            this.bbiLock.ItemClick += new ItemClickEventHandler(this.bbiLock_ItemClick);
            this.bbiOpen.Caption = "Mở Sổ";
            this.bbiOpen.Enabled = false;
            this.bbiOpen.Id = 15;
            this.bbiOpen.ImageIndex = 0x21;
            this.bbiOpen.Name = "bbiOpen";
            this.bbiOpen.ItemClick += new ItemClickEventHandler(this.bbiOpen_ItemClick);
            this.bbiFinish.Caption = "Ho\x00e0n Th\x00e0nh";
            this.bbiFinish.Enabled = false;
            this.bbiFinish.Id = 10;
            this.bbiFinish.ImageIndex = 30;
            this.bbiFinish.Name = "bbiFinish";
            this.bbiFinish.ItemClick += new ItemClickEventHandler(this.bbiFinish_ItemClick);
            this.bbiInsertSymbol.Caption = "Ch\x00e8n Nhanh";
            this.bbiInsertSymbol.Enabled = false;
            this.bbiInsertSymbol.Id = 20;
            this.bbiInsertSymbol.ImageIndex = 0x41;
            this.bbiInsertSymbol.Name = "bbiInsertSymbol";
            this.bbiInsertSymbol.Visibility = BarItemVisibility.Never;
            this.bbiInsertSymbol.ItemClick += new ItemClickEventHandler(this.bbiInsertSymbol_ItemClick);
            this.bbiRefresh.Caption = "Nạp Lại";
            this.bbiRefresh.Id = 9;
            this.bbiRefresh.ImageIndex = 0x2a;
            this.bbiRefresh.Name = "bbiRefresh";
            this.bbiRefresh.ItemClick += new ItemClickEventHandler(this.bbiRefresh_ItemClick);
            this.bbiClose.Caption = "Đ\x00f3ng";
            this.bbiClose.Id = 13;
            this.bbiClose.ImageIndex = 0x16;
            this.bbiClose.Name = "bbiClose";
            this.bbiClose.ItemClick += new ItemClickEventHandler(this.bbiClose_ItemClick);
            this.dockManager1.AutoHideContainers.AddRange(new AutoHideContainer[] { this.hideContainerLeft, this.hideContainerBottom });
            this.dockManager1.Form = this;
            this.dockManager1.TopZIndexControls.AddRange(new string[] { "DevExpress.XtraBars.BarDockControl", "DevExpress.XtraBars.StandaloneBarDockControl", "System.Windows.Forms.StatusBar", "DevExpress.XtraBars.Ribbon.RibbonStatusBar", "DevExpress.XtraBars.Ribbon.RibbonControl" });
            this.hideContainerLeft.Controls.Add(this.dockPanel1);
            this.hideContainerLeft.Dock = DockStyle.Left;
            this.hideContainerLeft.Location = new Point(0, 0x1a);
            this.hideContainerLeft.Name = "hideContainerLeft";
            this.hideContainerLeft.Size = new Size(0x13, 0x281);
            this.dockPanel1.Controls.Add(this.dockPanel1_Container);
            this.dockPanel1.Dock = DockingStyle.Left;
            this.dockPanel1.ID = new Guid("562688f1-5ae7-418e-b080-18d690e64c7d");
            this.dockPanel1.Location = new Point(0, 0);
            this.dockPanel1.Name = "dockPanel1";
            this.dockPanel1.OriginalSize = new Size(280, 200);
            this.dockPanel1.SavedDock = DockingStyle.Left;
            this.dockPanel1.SavedIndex = 1;
            this.dockPanel1.Size = new Size(280, 0x281);
            this.dockPanel1.Text = "Cơ cấu ph\x00f2ng ban";
            this.dockPanel1.Visibility = DockVisibility.AutoHide;
            this.dockPanel1_Container.Controls.Add(this.xucOrganization1);
            this.dockPanel1_Container.Location = new Point(3, 0x19);
            this.dockPanel1_Container.Name = "dockPanel1_Container";
            this.dockPanel1_Container.Size = new Size(0x112, 0x265);
            this.dockPanel1_Container.TabIndex = 0;
            this.xucOrganization1.Dock = DockStyle.Fill;
            this.xucOrganization1.IsClose = CloseOrNew.None;
            this.xucOrganization1.Location = new Point(0, 0);
            this.xucOrganization1.Name = "xucOrganization1";
            this.xucOrganization1.NotSave = false;
            command.Caption = "";
            command.Enable = false;
            command.Visibility = BarItemVisibility.Never;
            button.Add = command;
            command2.Caption = "";
            command2.Enable = false;
            command2.Visibility = BarItemVisibility.Never;
            button.Cancel = command2;
            command3.Caption = "";
            command3.Enable = false;
            command3.Visibility = BarItemVisibility.Never;
            button.Change = command3;
            command4.Caption = "";
            command4.Enable = false;
            command4.Visibility = BarItemVisibility.Never;
            button.Close = command4;
            command5.Caption = "";
            command5.Enable = false;
            command5.Visibility = BarItemVisibility.Never;
            button.Custom = command5;
            command6.Caption = "";
            command6.Enable = false;
            command6.Visibility = BarItemVisibility.Never;
            button.Delete = command6;
            command7.Caption = "";
            command7.Enable = false;
            command7.Visibility = BarItemVisibility.Never;
            button.Export = command7;
            command8.Caption = "";
            command8.Enable = false;
            command8.Visibility = BarItemVisibility.Never;
            button.Filter = command8;
            command9.Caption = "";
            command9.Enable = false;
            command9.Visibility = BarItemVisibility.Never;
            button.FilterCustomer = command9;
            command10.Caption = "";
            command10.Enable = false;
            command10.Visibility = BarItemVisibility.Never;
            button.FilterStock = command10;
            command11.Caption = "";
            command11.Enable = false;
            command11.Visibility = BarItemVisibility.Never;
            button.Find = command11;
            button.GClose = false;
            button.GCommand = false;
            button.GExport = false;
            command12.Caption = "";
            command12.Enable = false;
            command12.Visibility = BarItemVisibility.Never;
            button.Go = command12;
            button.GOption = false;
            button.GPrint = false;
            button.GRecords = false;
            button.GSearchBar = false;
            button.GSettings = false;
            button.GVaildation = false;
            command13.Caption = "";
            command13.Enable = false;
            command13.Visibility = BarItemVisibility.Never;
            button.Import = command13;
            command14.Caption = "";
            command14.Enable = false;
            command14.Visibility = BarItemVisibility.Never;
            button.Next = command14;
            command15.Caption = "";
            command15.Enable = false;
            command15.Visibility = BarItemVisibility.Never;
            button.PageSetup = command15;
            button.PHome = false;
            command16.Caption = "";
            command16.Enable = false;
            command16.Visibility = BarItemVisibility.Never;
            button.Previous = command16;
            command17.Caption = "";
            command17.Enable = false;
            command17.Visibility = BarItemVisibility.Never;
            button.Print = command17;
            command18.Caption = "";
            command18.Enable = false;
            command18.Visibility = BarItemVisibility.Never;
            button.PrintPreview = command18;
            button.PTool = false;
            command19.Caption = "";
            command19.Enable = false;
            command19.Visibility = BarItemVisibility.Never;
            button.Redo = command19;
            command20.Caption = "";
            command20.Enable = false;
            command20.Visibility = BarItemVisibility.Never;
            button.Refresh = command20;
            command21.Caption = "";
            command21.Enable = false;
            command21.Visibility = BarItemVisibility.Never;
            button.Save = command21;
            command22.Caption = "";
            command22.Enable = false;
            command22.Visibility = BarItemVisibility.Never;
            button.SaveAndClose = command22;
            command23.Caption = "";
            command23.Enable = false;
            command23.Visibility = BarItemVisibility.Never;
            button.SaveAndNew = command23;
            command24.Caption = "";
            command24.Enable = false;
            command24.Visibility = BarItemVisibility.Never;
            button.Search = command24;
            command25.Caption = "";
            command25.Enable = false;
            command25.Visibility = BarItemVisibility.Never;
            button.SearchText = command25;
            command26.Caption = "";
            command26.Enable = false;
            command26.Visibility = BarItemVisibility.Never;
            button.Task = command26;
            command27.Caption = "";
            command27.Enable = false;
            command27.Visibility = BarItemVisibility.Never;
            button.Undo = command27;
            command28.Caption = "";
            command28.Enable = false;
            command28.Visibility = BarItemVisibility.Never;
            button.Vaildate = command28;
            command29.Caption = "";
            command29.Enable = false;
            command29.Visibility = BarItemVisibility.Never;
            button.View = command29;
            this.xucOrganization1.RibbonBar = button;
            this.xucOrganization1.Size = new Size(0x112, 0x265);
            this.xucOrganization1.Status = Actions.None;
            this.xucOrganization1.TabIndex = 0;
            this.xucOrganization1.Title = "";
            this.hideContainerBottom.Controls.Add(this.dpFooter);
            this.hideContainerBottom.Dock = DockStyle.Bottom;
            this.hideContainerBottom.Location = new Point(0x13, 0x288);
            this.hideContainerBottom.Name = "hideContainerBottom";
            this.hideContainerBottom.Size = new Size(0x44c, 0x13);
            this.dpFooter.Controls.Add(this.dockPanel2_Container);
            this.dpFooter.Dock = DockingStyle.Bottom;
            this.dpFooter.FloatVertical = true;
            this.dpFooter.ID = new Guid("c6399f07-c110-4923-bafa-77031fea4dae");
            this.dpFooter.Location = new Point(0, 0);
            this.dpFooter.Name = "dpFooter";
            this.dpFooter.OriginalSize = new Size(200, 110);
            this.dpFooter.SavedDock = DockingStyle.Bottom;
            this.dpFooter.SavedIndex = 0;
            this.dpFooter.Size = new Size(0x44c, 110);
            this.dpFooter.Text = "K\x00dd HIỆU CHẤM C\x00d4NG & CA L\x00c0M VIỆC";
            this.dpFooter.Visibility = DockVisibility.AutoHide;
            this.dpFooter.VisibilityChanged += new VisibilityChangedEventHandler(this.dpFooter_VisibilityChanged);
            this.dpFooter.SizeChanged += new EventHandler(this.dpFooter_SizeChanged);
            this.dockPanel2_Container.Location = new Point(3, 0x19);
            this.dockPanel2_Container.Name = "dockPanel2_Container";
            this.dockPanel2_Container.Size = new Size(0x446, 0x52);
            this.dockPanel2_Container.TabIndex = 0;
            this.imageCollection2.ImageStream = (ImageCollectionStreamer) manager.GetObject("imageCollection2.ImageStream");
            this.imageCollection2.Images.SetKeyName(0x3d, "Vista (35).ico");
            this.imageCollection2.Images.SetKeyName(0x3e, "Security.ico");
            this.imageCollection2.Images.SetKeyName(0x3f, "RibbonPrintPreview_DocumentMapLarge.png");
            this.imageCollection2.Images.SetKeyName(0x40, "11.png");
            this.imageCollection2.Images.SetKeyName(0x41, "Sua.png");
            this.imageCollection2.Images.SetKeyName(0x42, "Them.png");
            this.imageCollection2.Images.SetKeyName(0x43, "PhanQuyen.png");
            this.imageCollection2.Images.SetKeyName(0x44, "11.png");
            this.imageCollection2.Images.SetKeyName(0x45, "plus.png");
            this.barButtonItem1.Caption = "Lưu";
            this.barButtonItem1.Id = 0x10;
            this.barButtonItem1.ImageIndex = 10;
            this.barButtonItem1.Name = "barButtonItem1";
            this.barButtonItem1.Visibility = BarItemVisibility.Never;
            this.bbiTimekeeperTableHour.Caption = "Theo Giờ C\x00f4ng";
            this.bbiTimekeeperTableHour.Id = 0x15;
            this.bbiTimekeeperTableHour.Name = "bbiTimekeeperTableHour";
            this.bbiTimekeeperTableHour.ItemClick += new ItemClickEventHandler(this.bbiTimekeeperTableHour_ItemClick);
            this.bbiTimekeeperTable.Caption = "Theo K\x00fd Hiệu (Dạng 1)";
            this.bbiTimekeeperTable.Id = 0x16;
            this.bbiTimekeeperTable.Name = "bbiTimekeeperTable";
            this.bbiTimekeeperTable.ItemClick += new ItemClickEventHandler(this.bbiTimekeeperTable_ItemClick);
            this.bbiTimekeeperExtraPrivate.Caption = "Tăng Cường Giờ C\x00f4ng, L\x00e0m Việc Ri\x00eang";
            this.bbiTimekeeperExtraPrivate.Id = 0x17;
            this.bbiTimekeeperExtraPrivate.Name = "bbiTimekeeperExtraPrivate";
            this.bbiTimekeeperExtraPrivate.ItemClick += new ItemClickEventHandler(this.bbiTimekeeperExtraPrivate_ItemClick);
            this.gcList.Dock = DockStyle.Fill;
            this.gcList.EmbeddedNavigator.Buttons.Append.Visible = false;
            this.gcList.EmbeddedNavigator.Buttons.CancelEdit.Visible = false;
            this.gcList.EmbeddedNavigator.Buttons.Edit.Visible = false;
            this.gcList.EmbeddedNavigator.Buttons.EndEdit.Visible = false;
            this.gcList.EmbeddedNavigator.Buttons.Remove.Visible = false;
            this.gcList.EmbeddedNavigator.TextStringFormat = "{0}/{1}";
            this.gcList.Location = new Point(0x13, 0x49);
            this.gcList.MainView = this.gbList;
            this.gcList.Name = "gcList";
            this.gcList.RepositoryItems.AddRange(new RepositoryItem[] { this.repPopup });
            this.gcList.Size = new Size(0x44c, 0x23f);
            this.gcList.TabIndex = 5;
            this.gcList.UseEmbeddedNavigator = true;
            this.gcList.ViewCollection.AddRange(new BaseView[] { this.gbList });
            this.gcList.Click += new EventHandler(this.gcList_Click);
            this.gbList.Appearance.GroupRow.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            this.gbList.Appearance.GroupRow.Options.UseFont = true;
            this.gbList.Appearance.HeaderPanel.Options.UseTextOptions = true;
            this.gbList.Appearance.HeaderPanel.TextOptions.HAlignment = HorzAlignment.Center;
            this.gbList.Appearance.HeaderPanel.TextOptions.WordWrap = WordWrap.Wrap;
            this.gbList.Appearance.Row.Options.UseTextOptions = true;
            this.gbList.Appearance.Row.TextOptions.WordWrap = WordWrap.Wrap;
            this.gbList.ColumnPanelRowHeight = 0x20;
            this.gbList.Columns.AddRange(new GridColumn[] { 
                this.colEmployeeCode, this.colFirstName, this.colLastName, this.colBranchName, this.colDepartmentName, this.colGroupName, this.colDay1, this.colDay2, this.colDay3, this.colDay4, this.colDay5, this.colDay6, this.colDay7, this.colDay8, this.colDay9, this.colDay10, 
                this.colDay11, this.colDay12, this.colDay13, this.colDay14, this.colDay15, this.colDay16, this.colDay17, this.colDay18, this.colDay19, this.colDay20, this.colDay21, this.colDay22, this.colDay23, this.colDay24, this.colDay25, this.colDay26, 
                this.colDay27, this.colDay28, this.colDay29, this.colDay30, this.colDay31, this.colWorkTotal, this.colRealDay, this.colNotRealDay, this.colRegulationDay, this.colFurloughDay, this.colCompensationDay, this.colAbsent, this.colAbsentWOL, this.colAbsentL, this.colClockingError, this.colClockingErrorBegin, 
                this.colClockingErrorEnd, this.colTotalHour, this.colLateMinute, this.colEarlyMinute, this.colNightDutyDay, this.colExtraHour, this.colPrivateHour
             });
            this.gbList.FixedLineWidth = 1;
            this.gbList.FocusRectStyle = DrawFocusRectStyle.RowFocus;
            condition.Appearance.ForeColor = Color.Red;
            condition.Appearance.Options.UseForeColor = true;
            condition.Column = this.colDay1;
            condition.Condition = FormatConditionEnum.Equal;
            condition.Value1 = "CS";
            condition2.Appearance.ForeColor = Color.Red;
            condition2.Appearance.Options.UseForeColor = true;
            condition2.Column = this.colDay2;
            condition2.Condition = FormatConditionEnum.Equal;
            condition2.Value1 = "CS";
            condition3.Appearance.ForeColor = Color.Red;
            condition3.Appearance.Options.UseForeColor = true;
            condition3.Column = this.colDay3;
            condition3.Condition = FormatConditionEnum.Equal;
            condition3.Value1 = "CS";
            condition4.Appearance.ForeColor = Color.Red;
            condition4.Appearance.Options.UseForeColor = true;
            condition4.Column = this.colDay4;
            condition4.Condition = FormatConditionEnum.Equal;
            condition4.Value1 = "CS";
            condition5.Appearance.ForeColor = Color.Red;
            condition5.Appearance.Options.UseForeColor = true;
            condition5.Column = this.colDay5;
            condition5.Condition = FormatConditionEnum.Equal;
            condition5.Value1 = "CS";
            condition6.Appearance.ForeColor = Color.Red;
            condition6.Appearance.Options.UseForeColor = true;
            condition6.Column = this.colDay6;
            condition6.Condition = FormatConditionEnum.Equal;
            condition6.Value1 = "CS";
            condition7.Appearance.ForeColor = Color.Red;
            condition7.Appearance.Options.UseForeColor = true;
            condition7.Column = this.colDay7;
            condition7.Condition = FormatConditionEnum.Equal;
            condition7.Value1 = "CS";
            condition8.Appearance.ForeColor = Color.Red;
            condition8.Appearance.Options.UseForeColor = true;
            condition8.Column = this.colDay8;
            condition8.Condition = FormatConditionEnum.Equal;
            condition8.Value1 = "CS";
            condition9.Appearance.ForeColor = Color.Red;
            condition9.Appearance.Options.UseForeColor = true;
            condition9.Column = this.colDay9;
            condition9.Condition = FormatConditionEnum.Equal;
            condition9.Value1 = "CS";
            condition10.Appearance.ForeColor = Color.Red;
            condition10.Appearance.Options.UseForeColor = true;
            condition10.Column = this.colDay10;
            condition10.Condition = FormatConditionEnum.Equal;
            condition10.Value1 = "CS";
            condition11.Appearance.ForeColor = Color.Red;
            condition11.Appearance.Options.UseForeColor = true;
            condition11.Column = this.colDay11;
            condition11.Condition = FormatConditionEnum.Equal;
            condition11.Value1 = "CS";
            condition12.Appearance.ForeColor = Color.Red;
            condition12.Appearance.Options.UseForeColor = true;
            condition12.Column = this.colDay12;
            condition12.Condition = FormatConditionEnum.Equal;
            condition12.Value1 = "CS";
            condition13.Appearance.ForeColor = Color.Red;
            condition13.Appearance.Options.UseForeColor = true;
            condition13.Column = this.colDay13;
            condition13.Condition = FormatConditionEnum.Equal;
            condition13.Value1 = "CS";
            condition14.Appearance.ForeColor = Color.Red;
            condition14.Appearance.Options.UseForeColor = true;
            condition14.Column = this.colDay14;
            condition14.Condition = FormatConditionEnum.Equal;
            condition14.Value1 = "CS";
            condition15.Appearance.ForeColor = Color.Red;
            condition15.Appearance.Options.UseForeColor = true;
            condition15.Column = this.colDay15;
            condition15.Condition = FormatConditionEnum.Equal;
            condition15.Value1 = "CS";
            condition16.Appearance.ForeColor = Color.Red;
            condition16.Appearance.Options.UseForeColor = true;
            condition16.Column = this.colDay16;
            condition16.Condition = FormatConditionEnum.Equal;
            condition16.Value1 = "CS";
            condition17.Appearance.ForeColor = Color.Red;
            condition17.Appearance.Options.UseForeColor = true;
            condition17.Column = this.colDay17;
            condition17.Condition = FormatConditionEnum.Equal;
            condition17.Value1 = "CS";
            condition18.Appearance.ForeColor = Color.Red;
            condition18.Appearance.Options.UseForeColor = true;
            condition18.Column = this.colDay18;
            condition18.Condition = FormatConditionEnum.Equal;
            condition18.Value1 = "CS";
            condition19.Appearance.ForeColor = Color.Red;
            condition19.Appearance.Options.UseForeColor = true;
            condition19.Column = this.colDay19;
            condition19.Condition = FormatConditionEnum.Equal;
            condition19.Value1 = "CS";
            condition20.Appearance.ForeColor = Color.Red;
            condition20.Appearance.Options.UseForeColor = true;
            condition20.Column = this.colDay20;
            condition20.Condition = FormatConditionEnum.Equal;
            condition20.Value1 = "CS";
            condition21.Appearance.ForeColor = Color.Red;
            condition21.Appearance.Options.UseForeColor = true;
            condition21.Column = this.colDay21;
            condition21.Condition = FormatConditionEnum.Equal;
            condition21.Value1 = "CS";
            condition22.Appearance.ForeColor = Color.Red;
            condition22.Appearance.Options.UseForeColor = true;
            condition22.Column = this.colDay22;
            condition22.Condition = FormatConditionEnum.Equal;
            condition22.Value1 = "CS";
            condition23.Appearance.ForeColor = Color.Red;
            condition23.Appearance.Options.UseForeColor = true;
            condition23.Column = this.colDay23;
            condition23.Condition = FormatConditionEnum.Equal;
            condition23.Value1 = "CS";
            condition24.Appearance.ForeColor = Color.Red;
            condition24.Appearance.Options.UseForeColor = true;
            condition24.Column = this.colDay24;
            condition24.Condition = FormatConditionEnum.Equal;
            condition24.Value1 = "CS";
            condition25.Appearance.ForeColor = Color.Red;
            condition25.Appearance.Options.UseForeColor = true;
            condition25.Column = this.colDay25;
            condition25.Condition = FormatConditionEnum.Equal;
            condition25.Value1 = "CS";
            condition26.Appearance.ForeColor = Color.Red;
            condition26.Appearance.Options.UseForeColor = true;
            condition26.Column = this.colDay26;
            condition26.Condition = FormatConditionEnum.Equal;
            condition26.Value1 = "CS";
            condition27.Appearance.ForeColor = Color.Red;
            condition27.Appearance.Options.UseForeColor = true;
            condition27.Column = this.colDay27;
            condition27.Condition = FormatConditionEnum.Equal;
            condition27.Value1 = "CS";
            condition28.Appearance.ForeColor = Color.Red;
            condition28.Appearance.Options.UseForeColor = true;
            condition28.Column = this.colDay28;
            condition28.Condition = FormatConditionEnum.Equal;
            condition28.Value1 = "CS";
            condition29.Appearance.ForeColor = Color.Red;
            condition29.Appearance.Options.UseForeColor = true;
            condition29.Column = this.colDay29;
            condition29.Condition = FormatConditionEnum.Equal;
            condition29.Value1 = "CS";
            condition30.Appearance.ForeColor = Color.Red;
            condition30.Appearance.Options.UseForeColor = true;
            condition30.Column = this.colDay30;
            condition30.Condition = FormatConditionEnum.Equal;
            condition30.Value1 = "CS";
            condition31.Appearance.ForeColor = Color.Red;
            condition31.Appearance.Options.UseForeColor = true;
            condition31.Column = this.colDay31;
            condition31.Condition = FormatConditionEnum.Equal;
            condition31.Value1 = "CS";
            this.gbList.FormatConditions.AddRange(new StyleFormatCondition[] { 
                condition, condition2, condition3, condition4, condition5, condition6, condition7, condition8, condition9, condition10, condition11, condition12, condition13, condition14, condition15, condition16, 
                condition17, condition18, condition19, condition20, condition21, condition22, condition23, condition24, condition25, condition26, condition27, condition28, condition29, condition30, condition31
             });
            this.gbList.GridControl = this.gcList;
            this.gbList.GroupPanelText = "K\x00e9o v\x00e0 Thả cột v\x00e0o đ\x00e2y để nh\x00f3m dữ liệu";
            this.gbList.IndicatorWidth = 40;
            this.gbList.Name = "gbList";
            this.gbList.OptionsBehavior.AllowIncrementalSearch = true;
            this.gbList.OptionsBehavior.AutoExpandAllGroups = true;
            this.gbList.OptionsBehavior.CopyToClipboardWithColumnHeaders = false;
            this.gbList.OptionsBehavior.FocusLeaveOnTab = true;
            this.gbList.OptionsCustomization.AllowFilter = false;
            this.gbList.OptionsFilter.AllowColumnMRUFilterList = false;
            this.gbList.OptionsFilter.AllowFilterEditor = false;
            this.gbList.OptionsFilter.AllowMRUFilterList = false;
            this.gbList.OptionsLayout.StoreAllOptions = true;
            this.gbList.OptionsLayout.StoreAppearance = true;
            this.gbList.OptionsMenu.EnableColumnMenu = false;
            this.gbList.OptionsMenu.EnableGroupPanelMenu = false;
            this.gbList.OptionsNavigation.EnterMoveNextColumn = true;
            this.gbList.OptionsSelection.InvertSelection = true;
            this.gbList.OptionsSelection.MultiSelect = true;
            this.gbList.OptionsView.AllowCellMerge = true;
            this.gbList.OptionsView.ColumnAutoWidth = false;
            this.gbList.OptionsView.ShowAutoFilterRow = true;
            this.gbList.OptionsView.ShowFilterPanelMode = ShowFilterPanelMode.Never;
            this.gbList.OptionsView.ShowFooter = true;
            this.gbList.OptionsView.ShowGroupPanel = false;
            this.gbList.FocusedRowChanged += new FocusedRowChangedEventHandler(this.gbList_FocusedRowChanged);
            this.gbList.CustomDrawRowIndicator += new RowIndicatorCustomDrawEventHandler(this.gbList_CustomDrawRowIndicator);
            this.gbList.FocusedColumnChanged += new FocusedColumnChangedEventHandler(this.gbList_FocusedColumnChanged);
            this.gbList.CellValueChanged += new CellValueChangedEventHandler(this.gbList_CellValueChanged);
            this.gbList.CellMerge += new CellMergeEventHandler(this.gbList_CellMerge);
            this.gbList.CellValueChanging += new CellValueChangedEventHandler(this.gbList_CellValueChanging);
            this.gbList.MouseDown += new MouseEventHandler(this.gbList_MouseDown);
            this.gbList.CustomSummaryCalculate += new CustomSummaryEventHandler(this.gbList_CustomSummaryCalculate);
            this.colEmployeeCode.AppearanceHeader.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            this.colEmployeeCode.AppearanceHeader.Options.UseFont = true;
            this.colEmployeeCode.Caption = "M\x00e3 nh\x00e2n vi\x00ean";
            this.colEmployeeCode.FieldName = "EmployeeCode";
            this.colEmployeeCode.Fixed = FixedStyle.Left;
            this.colEmployeeCode.Name = "colEmployeeCode";
            this.colEmployeeCode.OptionsColumn.AllowEdit = false;
            this.colEmployeeCode.OptionsColumn.ReadOnly = true;
            this.colEmployeeCode.Visible = true;
            this.colEmployeeCode.VisibleIndex = 0;
            this.colEmployeeCode.Width = 0x41;
            this.colFirstName.AppearanceHeader.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            this.colFirstName.AppearanceHeader.Options.UseFont = true;
            this.colFirstName.Caption = "Họ l\x00f3t";
            this.colFirstName.FieldName = "FirstName";
            this.colFirstName.Fixed = FixedStyle.Left;
            this.colFirstName.Name = "colFirstName";
            this.colFirstName.OptionsColumn.AllowEdit = false;
            this.colFirstName.OptionsColumn.ReadOnly = true;
            this.colFirstName.Visible = true;
            this.colFirstName.VisibleIndex = 1;
            this.colFirstName.Width = 100;
            this.colLastName.AppearanceHeader.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            this.colLastName.AppearanceHeader.Options.UseFont = true;
            this.colLastName.Caption = "T\x00ean";
            this.colLastName.FieldName = "LastName";
            this.colLastName.Fixed = FixedStyle.Left;
            this.colLastName.Name = "colLastName";
            this.colLastName.OptionsColumn.AllowEdit = false;
            this.colLastName.OptionsColumn.ReadOnly = true;
            this.colLastName.Visible = true;
            this.colLastName.VisibleIndex = 2;
            this.colLastName.Width = 0x30;
            this.colBranchName.Caption = "Chi nh\x00e1nh";
            this.colBranchName.FieldName = "BranchName";
            this.colBranchName.Fixed = FixedStyle.Left;
            this.colBranchName.Name = "colBranchName";
            this.colBranchName.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colBranchName.OptionsColumn.ReadOnly = true;
            this.colDepartmentName.Caption = "Ph\x00f2ng ban";
            this.colDepartmentName.FieldName = "DepartmentName";
            this.colDepartmentName.Fixed = FixedStyle.Left;
            this.colDepartmentName.Name = "colDepartmentName";
            this.colDepartmentName.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colDepartmentName.OptionsColumn.ReadOnly = true;
            this.colGroupName.Caption = "Tổ nh\x00f3m";
            this.colGroupName.FieldName = "GroupName";
            this.colGroupName.Fixed = FixedStyle.Left;
            this.colGroupName.Name = "colGroupName";
            this.colGroupName.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colGroupName.OptionsColumn.ReadOnly = true;
            this.colWorkTotal.AppearanceCell.BackColor = Color.WhiteSmoke;
            this.colWorkTotal.AppearanceCell.Font = new Font("Tahoma", 8.25f, FontStyle.Italic);
            this.colWorkTotal.AppearanceCell.Options.UseBackColor = true;
            this.colWorkTotal.AppearanceCell.Options.UseFont = true;
            this.colWorkTotal.AppearanceHeader.ForeColor = Color.Crimson;
            this.colWorkTotal.AppearanceHeader.Options.UseForeColor = true;
            this.colWorkTotal.Caption = "Tổng c\x00f4ng";
            this.colWorkTotal.FieldName = "WorkTotal";
            this.colWorkTotal.Fixed = FixedStyle.Right;
            this.colWorkTotal.Name = "colWorkTotal";
            this.colWorkTotal.OptionsColumn.AllowMerge = DefaultBoolean.True;
            this.colWorkTotal.OptionsColumn.ReadOnly = true;
            this.colWorkTotal.SummaryItem.SummaryType = SummaryItemType.Custom;
            this.colWorkTotal.SummaryItem.Tag = 0;
            this.colWorkTotal.Visible = true;
            this.colWorkTotal.VisibleIndex = 0x30;
            this.colWorkTotal.Width = 0x2c;
            this.colRealDay.AppearanceCell.BackColor = Color.MintCream;
            this.colRealDay.AppearanceCell.Font = new Font("Tahoma", 8.25f, FontStyle.Italic);
            this.colRealDay.AppearanceCell.Options.UseBackColor = true;
            this.colRealDay.AppearanceCell.Options.UseFont = true;
            this.colRealDay.AppearanceHeader.ForeColor = Color.DarkOliveGreen;
            this.colRealDay.AppearanceHeader.Options.UseForeColor = true;
            this.colRealDay.Caption = "Ng\x00e0y c\x00f4ng thực tế, c\x00f4ng t\x00e1c";
            this.colRealDay.FieldName = "RealDay";
            this.colRealDay.Fixed = FixedStyle.Right;
            this.colRealDay.MaxWidth = 0x2c;
            this.colRealDay.Name = "colRealDay";
            this.colRealDay.OptionsColumn.AllowMerge = DefaultBoolean.True;
            this.colRealDay.OptionsColumn.ReadOnly = true;
            this.colRealDay.SummaryItem.SummaryType = SummaryItemType.Custom;
            this.colRealDay.SummaryItem.Tag = 1;
            this.colRealDay.Visible = true;
            this.colRealDay.VisibleIndex = 0x2c;
            this.colRealDay.Width = 0x2c;
            this.colNotRealDay.AppearanceCell.BackColor = Color.MintCream;
            this.colNotRealDay.AppearanceCell.Options.UseBackColor = true;
            this.colNotRealDay.AppearanceHeader.ForeColor = Color.DarkOliveGreen;
            this.colNotRealDay.AppearanceHeader.Options.UseForeColor = true;
            this.colNotRealDay.Caption = "Ng\x00e0y nghỉ t\x00ednh c\x00f4ng";
            this.colNotRealDay.FieldName = "NotRealDay";
            this.colNotRealDay.MaxWidth = 0x4b;
            this.colNotRealDay.Name = "colNotRealDay";
            this.colRegulationDay.AppearanceCell.BackColor = Color.MintCream;
            this.colRegulationDay.AppearanceCell.Options.UseBackColor = true;
            this.colRegulationDay.AppearanceHeader.ForeColor = Color.DarkOliveGreen;
            this.colRegulationDay.AppearanceHeader.Options.UseForeColor = true;
            this.colRegulationDay.Caption = "Nghỉ chế độ";
            this.colRegulationDay.FieldName = "RegulationDay";
            this.colRegulationDay.Fixed = FixedStyle.Right;
            this.colRegulationDay.MaxWidth = 0x2c;
            this.colRegulationDay.Name = "colRegulationDay";
            this.colRegulationDay.OptionsColumn.AllowMerge = DefaultBoolean.True;
            this.colRegulationDay.OptionsColumn.ReadOnly = true;
            this.colRegulationDay.SummaryItem.SummaryType = SummaryItemType.Custom;
            this.colRegulationDay.SummaryItem.Tag = 2;
            this.colRegulationDay.Visible = true;
            this.colRegulationDay.VisibleIndex = 0x2d;
            this.colRegulationDay.Width = 0x2c;
            this.colFurloughDay.AppearanceCell.BackColor = Color.MintCream;
            this.colFurloughDay.AppearanceCell.Options.UseBackColor = true;
            this.colFurloughDay.AppearanceHeader.ForeColor = Color.DarkOliveGreen;
            this.colFurloughDay.AppearanceHeader.Options.UseForeColor = true;
            this.colFurloughDay.Caption = "Nghỉ ph\x00e9p năm";
            this.colFurloughDay.FieldName = "FurloughDay";
            this.colFurloughDay.Fixed = FixedStyle.Right;
            this.colFurloughDay.MaxWidth = 0x2c;
            this.colFurloughDay.Name = "colFurloughDay";
            this.colFurloughDay.OptionsColumn.AllowMerge = DefaultBoolean.True;
            this.colFurloughDay.OptionsColumn.ReadOnly = true;
            this.colFurloughDay.SummaryItem.SummaryType = SummaryItemType.Custom;
            this.colFurloughDay.SummaryItem.Tag = 3;
            this.colFurloughDay.Visible = true;
            this.colFurloughDay.VisibleIndex = 0x2e;
            this.colFurloughDay.Width = 0x2c;
            this.colCompensationDay.AppearanceCell.BackColor = Color.MintCream;
            this.colCompensationDay.AppearanceCell.Options.UseBackColor = true;
            this.colCompensationDay.AppearanceHeader.ForeColor = Color.DarkOliveGreen;
            this.colCompensationDay.AppearanceHeader.Options.UseForeColor = true;
            this.colCompensationDay.Caption = "Nghỉ b\x00f9";
            this.colCompensationDay.FieldName = "CompensationDay";
            this.colCompensationDay.Fixed = FixedStyle.Right;
            this.colCompensationDay.MaxWidth = 0x2c;
            this.colCompensationDay.Name = "colCompensationDay";
            this.colCompensationDay.OptionsColumn.AllowMerge = DefaultBoolean.True;
            this.colCompensationDay.OptionsColumn.ReadOnly = true;
            this.colCompensationDay.SummaryItem.SummaryType = SummaryItemType.Custom;
            this.colCompensationDay.SummaryItem.Tag = 4;
            this.colCompensationDay.Visible = true;
            this.colCompensationDay.VisibleIndex = 0x2f;
            this.colCompensationDay.Width = 0x2c;
            this.colAbsent.AppearanceCell.BackColor = Color.GhostWhite;
            this.colAbsent.AppearanceCell.Options.UseBackColor = true;
            this.colAbsent.AppearanceHeader.ForeColor = Color.Purple;
            this.colAbsent.AppearanceHeader.Options.UseForeColor = true;
            this.colAbsent.Caption = "Ng\x00e0y kh\x00f4ng t\x00ednh c\x00f4ng";
            this.colAbsent.FieldName = "Absent";
            this.colAbsent.MaxWidth = 0x4b;
            this.colAbsent.Name = "colAbsent";
            this.colAbsentWOL.AppearanceCell.BackColor = Color.GhostWhite;
            this.colAbsentWOL.AppearanceCell.Options.UseBackColor = true;
            this.colAbsentWOL.AppearanceHeader.ForeColor = Color.Purple;
            this.colAbsentWOL.AppearanceHeader.Options.UseForeColor = true;
            this.colAbsentWOL.Caption = "Nghỉ KP";
            this.colAbsentWOL.FieldName = "AbsentWOL";
            this.colAbsentWOL.Name = "colAbsentWOL";
            this.colAbsentWOL.OptionsColumn.AllowMerge = DefaultBoolean.True;
            this.colAbsentWOL.OptionsColumn.ReadOnly = true;
            this.colAbsentWOL.SummaryItem.SummaryType = SummaryItemType.Custom;
            this.colAbsentWOL.SummaryItem.Tag = 5;
            this.colAbsentWOL.Visible = true;
            this.colAbsentWOL.VisibleIndex = 0x22;
            this.colAbsentWOL.Width = 0x2c;
            this.colAbsentL.AppearanceCell.BackColor = Color.GhostWhite;
            this.colAbsentL.AppearanceCell.Options.UseBackColor = true;
            this.colAbsentL.AppearanceHeader.ForeColor = Color.Purple;
            this.colAbsentL.AppearanceHeader.Options.UseForeColor = true;
            this.colAbsentL.Caption = "Nghỉ CP";
            this.colAbsentL.FieldName = "AbsentL";
            this.colAbsentL.Name = "colAbsentL";
            this.colAbsentL.OptionsColumn.AllowMerge = DefaultBoolean.True;
            this.colAbsentL.OptionsColumn.ReadOnly = true;
            this.colAbsentL.SummaryItem.SummaryType = SummaryItemType.Custom;
            this.colAbsentL.SummaryItem.Tag = 6;
            this.colAbsentL.Visible = true;
            this.colAbsentL.VisibleIndex = 0x23;
            this.colAbsentL.Width = 0x2c;
            this.colClockingError.AppearanceCell.BackColor = Color.GhostWhite;
            this.colClockingError.AppearanceCell.Options.UseBackColor = true;
            this.colClockingError.AppearanceHeader.ForeColor = Color.Purple;
            this.colClockingError.AppearanceHeader.Options.UseForeColor = true;
            this.colClockingError.Caption = "Chấm c\x00f4ng sai";
            this.colClockingError.FieldName = "ClockingError";
            this.colClockingError.MaxWidth = 0x4b;
            this.colClockingError.Name = "colClockingError";
            this.colClockingError.OptionsColumn.AllowMerge = DefaultBoolean.True;
            this.colClockingError.OptionsColumn.ReadOnly = true;
            this.colClockingError.SummaryItem.SummaryType = SummaryItemType.Custom;
            this.colClockingError.SummaryItem.Tag = 7;
            this.colClockingErrorBegin.AppearanceCell.BackColor = Color.GhostWhite;
            this.colClockingErrorBegin.AppearanceCell.Options.UseBackColor = true;
            this.colClockingErrorBegin.AppearanceHeader.ForeColor = Color.Purple;
            this.colClockingErrorBegin.AppearanceHeader.Options.UseForeColor = true;
            this.colClockingErrorBegin.Caption = "Kh\x00f4ng chấm v\x00e0o";
            this.colClockingErrorBegin.FieldName = "ClockingErrorBegin";
            this.colClockingErrorBegin.MaxWidth = 0x4b;
            this.colClockingErrorBegin.Name = "colClockingErrorBegin";
            this.colClockingErrorBegin.OptionsColumn.AllowMerge = DefaultBoolean.True;
            this.colClockingErrorBegin.OptionsColumn.ReadOnly = true;
            this.colClockingErrorBegin.SummaryItem.SummaryType = SummaryItemType.Custom;
            this.colClockingErrorBegin.SummaryItem.Tag = 8;
            this.colClockingErrorBegin.Visible = true;
            this.colClockingErrorBegin.VisibleIndex = 0x2a;
            this.colClockingErrorEnd.AppearanceCell.BackColor = Color.GhostWhite;
            this.colClockingErrorEnd.AppearanceCell.Options.UseBackColor = true;
            this.colClockingErrorEnd.AppearanceHeader.ForeColor = Color.Purple;
            this.colClockingErrorEnd.AppearanceHeader.Options.UseForeColor = true;
            this.colClockingErrorEnd.Caption = "Kh\x00f4ng chấm ra";
            this.colClockingErrorEnd.FieldName = "ClockingErrorEnd";
            this.colClockingErrorEnd.MaxWidth = 0x4b;
            this.colClockingErrorEnd.Name = "colClockingErrorEnd";
            this.colClockingErrorEnd.OptionsColumn.AllowMerge = DefaultBoolean.True;
            this.colClockingErrorEnd.OptionsColumn.ReadOnly = true;
            this.colClockingErrorEnd.SummaryItem.SummaryType = SummaryItemType.Custom;
            this.colClockingErrorEnd.SummaryItem.Tag = 9;
            this.colClockingErrorEnd.Visible = true;
            this.colClockingErrorEnd.VisibleIndex = 0x2b;
            this.colTotalHour.AppearanceCell.BackColor = Color.SeaShell;
            this.colTotalHour.AppearanceCell.Options.UseBackColor = true;
            this.colTotalHour.AppearanceHeader.ForeColor = Color.Red;
            this.colTotalHour.AppearanceHeader.Options.UseForeColor = true;
            this.colTotalHour.Caption = "Tổng giờ";
            this.colTotalHour.FieldName = "TotalHour";
            this.colTotalHour.Name = "colTotalHour";
            this.colTotalHour.OptionsColumn.AllowMerge = DefaultBoolean.True;
            this.colTotalHour.OptionsColumn.ReadOnly = true;
            this.colTotalHour.SummaryItem.SummaryType = SummaryItemType.Custom;
            this.colTotalHour.SummaryItem.Tag = 10;
            this.colTotalHour.Visible = true;
            this.colTotalHour.VisibleIndex = 0x26;
            this.colTotalHour.Width = 0x2c;
            this.colLateMinute.AppearanceCell.BackColor = Color.SeaShell;
            this.colLateMinute.AppearanceCell.Options.UseBackColor = true;
            this.colLateMinute.AppearanceHeader.ForeColor = Color.Red;
            this.colLateMinute.AppearanceHeader.Options.UseForeColor = true;
            this.colLateMinute.Caption = "Đi trễ";
            this.colLateMinute.FieldName = "LateMinute";
            this.colLateMinute.MaxWidth = 0x2c;
            this.colLateMinute.Name = "colLateMinute";
            this.colLateMinute.OptionsColumn.AllowMerge = DefaultBoolean.True;
            this.colLateMinute.OptionsColumn.ReadOnly = true;
            this.colLateMinute.SummaryItem.SummaryType = SummaryItemType.Custom;
            this.colLateMinute.SummaryItem.Tag = 11;
            this.colLateMinute.Visible = true;
            this.colLateMinute.VisibleIndex = 0x24;
            this.colLateMinute.Width = 0x2c;
            this.colEarlyMinute.AppearanceCell.BackColor = Color.SeaShell;
            this.colEarlyMinute.AppearanceCell.Options.UseBackColor = true;
            this.colEarlyMinute.AppearanceHeader.ForeColor = Color.Red;
            this.colEarlyMinute.AppearanceHeader.Options.UseForeColor = true;
            this.colEarlyMinute.Caption = "Về sớm";
            this.colEarlyMinute.FieldName = "EarlyMinute";
            this.colEarlyMinute.MaxWidth = 0x2c;
            this.colEarlyMinute.Name = "colEarlyMinute";
            this.colEarlyMinute.OptionsColumn.AllowMerge = DefaultBoolean.True;
            this.colEarlyMinute.OptionsColumn.ReadOnly = true;
            this.colEarlyMinute.SummaryItem.SummaryType = SummaryItemType.Custom;
            this.colEarlyMinute.SummaryItem.Tag = 12;
            this.colEarlyMinute.Visible = true;
            this.colEarlyMinute.VisibleIndex = 0x25;
            this.colEarlyMinute.Width = 0x2c;
            this.colNightDutyDay.AppearanceCell.BackColor = Color.WhiteSmoke;
            this.colNightDutyDay.AppearanceCell.Options.UseBackColor = true;
            this.colNightDutyDay.AppearanceHeader.ForeColor = Color.Black;
            this.colNightDutyDay.AppearanceHeader.Options.UseForeColor = true;
            this.colNightDutyDay.Caption = "Trực đ\x00eam";
            this.colNightDutyDay.FieldName = "NightDutyDay";
            this.colNightDutyDay.MaxWidth = 0x36;
            this.colNightDutyDay.Name = "colNightDutyDay";
            this.colNightDutyDay.OptionsColumn.AllowMerge = DefaultBoolean.True;
            this.colNightDutyDay.OptionsColumn.ReadOnly = true;
            this.colNightDutyDay.SummaryItem.FieldName = "NightDay";
            this.colNightDutyDay.SummaryItem.SummaryType = SummaryItemType.Custom;
            this.colNightDutyDay.SummaryItem.Tag = "13";
            this.colNightDutyDay.Visible = true;
            this.colNightDutyDay.VisibleIndex = 0x27;
            this.colNightDutyDay.Width = 0x36;
            this.colExtraHour.AppearanceCell.BackColor = Color.WhiteSmoke;
            this.colExtraHour.AppearanceCell.Options.UseBackColor = true;
            this.colExtraHour.Caption = "Tăng cường";
            this.colExtraHour.FieldName = "ExtraHour";
            this.colExtraHour.MaxWidth = 0x39;
            this.colExtraHour.Name = "colExtraHour";
            this.colExtraHour.OptionsColumn.AllowMerge = DefaultBoolean.True;
            this.colExtraHour.OptionsColumn.ReadOnly = true;
            this.colExtraHour.SummaryItem.SummaryType = SummaryItemType.Custom;
            this.colExtraHour.SummaryItem.Tag = "14";
            this.colExtraHour.Visible = true;
            this.colExtraHour.VisibleIndex = 40;
            this.colExtraHour.Width = 0x39;
            this.colPrivateHour.AppearanceCell.BackColor = Color.WhiteSmoke;
            this.colPrivateHour.AppearanceCell.Options.UseBackColor = true;
            this.colPrivateHour.Caption = "L\x00e0m việc ri\x00eang";
            this.colPrivateHour.FieldName = "PrivateHour";
            this.colPrivateHour.MaxWidth = 60;
            this.colPrivateHour.Name = "colPrivateHour";
            this.colPrivateHour.OptionsColumn.AllowMerge = DefaultBoolean.True;
            this.colPrivateHour.OptionsColumn.ReadOnly = true;
            this.colPrivateHour.SummaryItem.SummaryType = SummaryItemType.Custom;
            this.colPrivateHour.SummaryItem.Tag = "15";
            this.colPrivateHour.Visible = true;
            this.colPrivateHour.VisibleIndex = 0x29;
            this.colPrivateHour.Width = 60;
            this.panelControl1.BorderStyle = BorderStyles.NoBorder;
            this.panelControl1.Controls.Add(this.flowLayoutPanel3);
            this.panelControl1.Controls.Add(this.flowLayoutPanel2);
            this.panelControl1.Controls.Add(this.flowLayoutPanel1);
            this.panelControl1.Controls.Add(this.lbMessage);
            this.panelControl1.Dock = DockStyle.Top;
            this.panelControl1.Location = new Point(0x13, 0x1a);
            this.panelControl1.Name = "panelControl1";
            this.panelControl1.Size = new Size(0x44c, 0x2f);
            this.panelControl1.TabIndex = 8;
            this.flowLayoutPanel3.Anchor = AnchorStyles.Right | AnchorStyles.Top;
            this.flowLayoutPanel3.Controls.Add(this.xucExpandCollapseButton1);
            this.flowLayoutPanel3.Controls.Add(this.lbGroupName);
            this.flowLayoutPanel3.Controls.Add(this.lbDepartmentName);
            this.flowLayoutPanel3.FlowDirection = FlowDirection.RightToLeft;
            this.flowLayoutPanel3.Location = new Point(0x292, 0x16);
            this.flowLayoutPanel3.Name = "flowLayoutPanel3";
            this.flowLayoutPanel3.Size = new Size(0x1b7, 0x15);
            this.flowLayoutPanel3.TabIndex = 6;
            this.xucExpandCollapseButton1.Location = new Point(0x1a3, 3);
            this.xucExpandCollapseButton1.Name = "xucExpandCollapseButton1";
            this.xucExpandCollapseButton1.Size = new Size(0x11, 15);
            this.xucExpandCollapseButton1.TabIndex = 5;
            this.xucExpandCollapseButton1.ExpandCollapsed += new xucExpandCollapseButton.ExpandCollapsedHander(this.xucExpandCollapseButton1_ExpandCollapsed);
            this.lbGroupName.Anchor = AnchorStyles.Right | AnchorStyles.Top;
            this.lbGroupName.Location = new Point(0x15b, 3);
            this.lbGroupName.Name = "lbGroupName";
            this.lbGroupName.Size = new Size(0x42, 13);
            this.lbGroupName.TabIndex = 4;
            this.lbGroupName.Text = " - GroupName";
            this.lbDepartmentName.Anchor = AnchorStyles.Right | AnchorStyles.Top;
            this.lbDepartmentName.Location = new Point(0x101, 3);
            this.lbDepartmentName.Name = "lbDepartmentName";
            this.lbDepartmentName.Size = new Size(0x54, 13);
            this.lbDepartmentName.TabIndex = 3;
            this.lbDepartmentName.Text = "DepartmentName";
            this.flowLayoutPanel2.Anchor = AnchorStyles.Right | AnchorStyles.Top;
            this.flowLayoutPanel2.Controls.Add(this.lbBranchName);
            this.flowLayoutPanel2.Controls.Add(this.lbCompanyName);
            this.flowLayoutPanel2.FlowDirection = FlowDirection.RightToLeft;
            this.flowLayoutPanel2.Location = new Point(0x292, 1);
            this.flowLayoutPanel2.Name = "flowLayoutPanel2";
            this.flowLayoutPanel2.Size = new Size(0x1b7, 0x12);
            this.flowLayoutPanel2.TabIndex = 5;
            this.lbBranchName.Anchor = AnchorStyles.Right | AnchorStyles.Top;
            this.lbBranchName.Appearance.Font = new Font("Tahoma", 9f, FontStyle.Bold);
            this.lbBranchName.Appearance.Options.UseFont = true;
            this.lbBranchName.Location = new Point(0x15c, 3);
            this.lbBranchName.Name = "lbBranchName";
            this.lbBranchName.Size = new Size(0x58, 14);
            this.lbBranchName.TabIndex = 2;
            this.lbBranchName.Text = " - BranchName";
            this.lbCompanyName.Anchor = AnchorStyles.Right | AnchorStyles.Top;
            this.lbCompanyName.Appearance.Font = new Font("Tahoma", 9f, FontStyle.Bold);
            this.lbCompanyName.Appearance.Options.UseFont = true;
            this.lbCompanyName.Location = new Point(0xfc, 3);
            this.lbCompanyName.Name = "lbCompanyName";
            this.lbCompanyName.Size = new Size(90, 14);
            this.lbCompanyName.TabIndex = 1;
            this.lbCompanyName.Text = "CompanyName";
            this.flowLayoutPanel1.Controls.Add(this.simpleButton1);
            this.flowLayoutPanel1.Controls.Add(this.lbTimeKeeperName);
            this.flowLayoutPanel1.Controls.Add(this.ptLock);
            this.flowLayoutPanel1.Controls.Add(this.ptFinish);
            this.flowLayoutPanel1.Location = new Point(6, 4);
            this.flowLayoutPanel1.Name = "flowLayoutPanel1";
            this.flowLayoutPanel1.Size = new Size(0x1e2, 20);
            this.flowLayoutPanel1.TabIndex = 4;
            this.simpleButton1.Appearance.Font = new Font("Lucida Console", 9.25f);
            this.simpleButton1.Appearance.Options.UseFont = true;
            this.simpleButton1.Location = new Point(3, 3);
            this.simpleButton1.Name = "simpleButton1";
            this.simpleButton1.Size = new Size(30, 15);
            this.simpleButton1.TabIndex = 13;
            this.simpleButton1.Text = "▼";
            this.simpleButton1.Click += new EventHandler(this.simpleButton1_Click);
            this.lbTimeKeeperName.Appearance.Font = new Font("Tahoma", 9f, FontStyle.Bold);
            this.lbTimeKeeperName.Appearance.Options.UseFont = true;
            this.lbTimeKeeperName.Location = new Point(0x27, 3);
            this.lbTimeKeeperName.Name = "lbTimeKeeperName";
            this.lbTimeKeeperName.Size = new Size(0x10f, 14);
            this.lbTimeKeeperName.TabIndex = 0;
            this.lbTimeKeeperName.Text = "[Vui l\x00f2ng chọn bảng chấm c\x00f4ng ở ph\x00eda tr\x00ean]";
            this.ptLock.Image = MsgResc.lock_open__1_;
            this.ptLock.Location = new Point(0x13d, 0);
            this.ptLock.Margin = new Padding(4, 0, 0, 0);
            this.ptLock.Name = "ptLock";
            this.ptLock.Size = new Size(0x10, 0x10);
            this.ptLock.TabIndex = 10;
            this.ptLock.TabStop = false;
            this.ptLock.Visible = false;
            this.ptFinish.Image = MsgResc.check;
            this.ptFinish.Location = new Point(0x151, 0);
            this.ptFinish.Margin = new Padding(4, 0, 0, 0);
            this.ptFinish.Name = "ptFinish";
            this.ptFinish.Size = new Size(0x10, 0x10);
            this.ptFinish.TabIndex = 11;
            this.ptFinish.TabStop = false;
            this.ptFinish.Visible = false;
            this.lbMessage.Appearance.ForeColor = Color.DarkBlue;
            this.lbMessage.Appearance.Options.UseForeColor = true;
            this.lbMessage.Location = new Point(4, 0x1c);
            this.lbMessage.Name = "lbMessage";
            this.lbMessage.Size = new Size(0x1e4, 13);
            this.lbMessage.TabIndex = 2;
            this.lbMessage.Text = "[Nếu danh s\x00e1ch l\x00e0 trống bạn c\x00f3 thể nhấn v\x00e0o n\x00fat kế b\x00ean khung chọn để ph\x00e1t sinh dữ liệu chấm c\x00f4ng]";
            this.popupMenu1.LinksPersistInfo.AddRange(new LinkPersistInfo[] { new LinkPersistInfo(this.bbiTimekeeperTable), new LinkPersistInfo(this.bbiTimekeeperTableHour), new LinkPersistInfo(this.bbiTimekeeperExtraPrivate, true) });
            this.popupMenu1.Manager = this.barManager1;
            this.popupMenu1.Name = "popupMenu1";
            base.AutoScaleDimensions = new SizeF(6f, 13f);
            base.AutoScaleMode = AutoScaleMode.Font;
            base.Controls.Add(this.gcList);
            base.Controls.Add(this.panelControl1);
            base.Controls.Add(this.hideContainerBottom);
            base.Controls.Add(this.hideContainerLeft);
            base.Controls.Add(this.barDockControlLeft);
            base.Controls.Add(this.barDockControlRight);
            base.Controls.Add(this.barDockControlBottom);
            base.Controls.Add(this.barDockControlTop);
            base.Name = "xucTimekeeperTable1";
            base.Size = new Size(0x45f, 0x29b);
            this.repPopup.EndInit();
            this.barManager1.EndInit();
            this.repTimeKeeperList.EndInit();
            this.repositoryItemGridLookUpEdit2View.EndInit();
            this.repYear.EndInit();
            this.dockManager1.EndInit();
            this.hideContainerLeft.ResumeLayout(false);
            this.dockPanel1.ResumeLayout(false);
            this.dockPanel1_Container.ResumeLayout(false);
            this.hideContainerBottom.ResumeLayout(false);
            this.dpFooter.ResumeLayout(false);
            this.imageCollection2.EndInit();
            this.gcList.EndInit();
            this.gbList.EndInit();
            this.panelControl1.EndInit();
            this.panelControl1.ResumeLayout(false);
            this.panelControl1.PerformLayout();
            this.flowLayoutPanel3.ResumeLayout(false);
            this.flowLayoutPanel3.PerformLayout();
            this.flowLayoutPanel2.ResumeLayout(false);
            this.flowLayoutPanel2.PerformLayout();
            this.flowLayoutPanel1.ResumeLayout(false);
            this.flowLayoutPanel1.PerformLayout();
            ((ISupportInitialize) this.ptLock).EndInit();
            ((ISupportInitialize) this.ptFinish).EndInit();
            this.popupMenu1.EndInit();
            base.ResumeLayout(false);
        }

        private void InitInterface()
        {
            if (!(this.m_IsLock || this.m_IsFinish))
            {
                this.bbiLock.Enabled = true;
                this.ptLock.Visible = false;
                this.bbiOpen.Enabled = true;
                this.bbiFinish.Enabled = true;
                this.ptFinish.Visible = false;
                this.bbiInsertSymbol.Enabled = true;
                this.lbMessage.Text = "Đ\x00e3 mở sổ - Bảng chấm c\x00f4ng được ph\x00e9p chỉnh sửa";
                this.GridViewOpen();
            }
            else if (!(!this.m_IsLock || this.m_IsFinish))
            {
                this.bbiLock.Enabled = false;
                this.ptLock.Visible = true;
                this.bbiOpen.Enabled = true;
                this.bbiFinish.Enabled = true;
                this.ptFinish.Visible = false;
                this.bbiInsertSymbol.Enabled = false;
                this.lbMessage.Text = "Đ\x00e3 kho\x00e1 sổ - Kh\x00f4ng được ph\x00e9p chỉnh sửa";
                this.GridViewLock();
            }
            else if (!(this.m_IsLock || !this.m_IsFinish))
            {
                this.bbiLock.Enabled = true;
                this.ptLock.Visible = false;
                this.bbiOpen.Enabled = false;
                this.bbiFinish.Enabled = false;
                this.ptFinish.Visible = true;
                this.bbiInsertSymbol.Enabled = true;
                this.lbMessage.Text = "Đ\x00e3 ho\x00e0n th\x00e0nh bảng chấm c\x00f4ng của th\x00e1ng n\x00e0y - Kh\x00f4ng được ph\x00e9p chỉnh sửa";
                this.GridViewLock();
            }
            else if (this.m_IsLock && this.m_IsFinish)
            {
                this.bbiLock.Enabled = false;
                this.ptLock.Visible = true;
                this.bbiOpen.Enabled = false;
                this.bbiFinish.Enabled = false;
                this.ptFinish.Visible = true;
                this.bbiInsertSymbol.Enabled = false;
                this.lbMessage.Text = "Đ\x00e3 ho\x00e0n th\x00e0nh bảng chấm c\x00f4ng của th\x00e1ng n\x00e0y - Kh\x00f4ng được ph\x00e9p chỉnh sửa";
                this.GridViewLock();
            }
        }

        private void InitSymbol()
        {
            DataTable list = new DIC_SYMBOL().GetList();
        }

        public void LoadGrid(int Level, string Code)
        {
            try
            {
                Guid timeKeeperTableListID = this.m_TimeKeeperTableListID;
                this.gcList.DataSource = new HRM_TIMEKEEPER_TABLE().GetList1(Level, Code, this.m_TimeKeeperTableListID);
                this.gbList.BestFitColumns();
            }
            catch
            {
            }
            this.InitInterface();
        }

        private void LoadInterface()
        {
            try
            {
                DataSet set = new DataSet();
                set.ReadXml(Application.StartupPath + @"\LayoutControl\xucTimekeeperTable1.xml");
                bool flag = bool.Parse(set.Tables[0].Rows[0][0].ToString());
                int num = int.Parse(set.Tables[0].Rows[0][1].ToString());
                if (flag)
                {
                    this.dpFooter.Visibility = DockVisibility.Visible;
                }
                else
                {
                    this.dpFooter.Visibility = DockVisibility.AutoHide;
                }
                this.dpFooter.Height = num;
            }
            catch
            {
                this.dpFooter.Visibility = DockVisibility.Visible;
                this.dpFooter.Height = 110;
            }
        }

        private void LoadSymbol()
        {
            xucSymbolList list = new xucSymbolList();
            list.Init(true, true);
            list.Dock = DockStyle.Fill;
            this.dpFooter.Controls.Add(list);
            list.BringToFront();
        }

        public void LoadTimeKeeperTableList()
        {
            new HRM_TIMEKEEPER_TABLELIST().AddRepositoryGridLookupEditByYear(this.repTimeKeeperList, this.m_Year);
            if (this.m_TimeKeeperTableListID != Guid.Empty)
            {
                this.LoadGrid(this.m_Level, this.m_Code);
            }
        }

        private bool MultiSymbolIsExist()
        {
            string[] strArray = this.m_NewSymbol.Split(new char[] { ';' });
            int index = 0;
            int num2 = 0;
            if (strArray.Length > 2)
            {
                return false;
            }
            while (index < strArray.Length)
            {
                if (this.SymbolIsExist(strArray[index]))
                {
                    num2++;
                }
                index++;
            }
            return (num2 == strArray.Length);
        }

        private void RaiseClosedHandler()
        {
            if (this.Closed != null)
            {
                this.Closed(this);
            }
        }

        private void RaiseTimekeeperTableDeletedHander()
        {
            if (this.TimekeeperTableDeleted != null)
            {
                this.TimekeeperTableDeleted(this);
            }
        }

        private void RaiseTimekeeperTableHourSelectedHandler(string Code, Guid TimeKeeperTableListID, int Year, int MenuSelected)
        {
            if (this.TimekeeperTableHourSelected != null)
            {
                this.TimekeeperTableHourSelected(this, Code, TimeKeeperTableListID, Year, MenuSelected);
            }
        }

        private void RaiseTimekeeperTableInsertedHander()
        {
            if (this.TimekeeperTableInserted != null)
            {
                this.TimekeeperTableInserted(this);
            }
        }

        private void RaiseUnShiftDataHandler(int Month, int Year)
        {
            if (this.UnShiftData != null)
            {
                this.UnShiftData(this, Month, Year);
            }
        }

        private void repPopup_Popup(object sender, EventArgs e)
        {
            this.m_EmployeeCode = this.gbList.GetFocusedRowCellValue(this.colEmployeeCode).ToString();
            HRM_TIMEKEEPER hrm_timekeeper = new HRM_TIMEKEEPER();
            this.xucTimekeepingAdd.SetData(this.m_TimeKeeperTableListID, this.m_EmployeeCode, this.m_Date);
            this.xucTimekeepingAdd.Status = Actions.Update;
        }

        private void repTimeKeeperList_ButtonClick(object sender, ButtonPressedEventArgs e)
        {
            HRM.CORE.xfmShiftAdd.UnShiftDataHandler handler = null;
            HRM.CORE.xfmShiftAdd.TimekeeperTableDeletedHandler handler2 = null;
            if (e.Button.Kind == ButtonPredefines.Glyph)
            {
                HRM.CORE.xfmShiftAdd add = new HRM.CORE.xfmShiftAdd();
                if (handler == null)
                {
                    handler = (s, m, y) => this.RaiseUnShiftDataHandler(m, y);
                }
                add.UnShiftData += handler;
                if (handler2 == null)
                {
                    handler2 = s => this.RaiseTimekeeperTableDeletedHander();
                }
                add.TimekeeperTableDeleted += handler2;
                add.ShowDialog();
            }
        }

        private void repTimeKeeperList_EditValueChanged(object sender, EventArgs e)
        {
        }

        private void repTimeKeeperList_EditValueChanging(object sender, ChangingEventArgs e)
        {
            this.m_TimeKeeperTableListID = new Guid(e.NewValue.ToString());
        }

        private void Save()
        {
            if (this.SaveData())
            {
                this.LoadGrid(this.m_Level, this.m_Code);
            }
            else
            {
                XtraMessageBox.Show("Lưu thất bại!");
            }
        }

        public bool SaveData()
        {
            HRM_TIMEKEEPER hrm_timekeeper = new HRM_TIMEKEEPER();
            foreach (DataRow row in this.dt_Timekeeper.Rows)
            {
                if (hrm_timekeeper.UpdateSymbol(this.m_TimeKeeperTableListID, row["EmployeeCode"].ToString(), row["ShiftCode"].ToString(), Convert.ToDateTime(row["Date"].ToString()), row["Symbol"].ToString(), Convert.ToDateTime(row["TimeIn"].ToString()), Convert.ToDateTime(row["TimeOut"].ToString()), Convert.ToDouble(row["Hour"].ToString()), Convert.ToDouble(row["DayHour"].ToString()), Convert.ToDouble(row["NightHour"].ToString()), Convert.ToDouble(row["PrivateHour"].ToString()), Convert.ToInt32(row["LateMinute"].ToString()), Convert.ToInt32(row["EarlyMinute"].ToString()), Convert.ToBoolean(row["IsOvertime"].ToString()), Convert.ToBoolean(row["IsWork"].ToString()), Convert.ToInt32(row["Sorted"].ToString()), row["Description"].ToString()) != "OK")
                {
                    return false;
                }
            }
            this.dt_Timekeeper.Clear();
            return true;
        }

        private void SaveProcess()
        {
            xfmAssignmentAdd.AddedEventHander hander = null;
            xfmPetitionAdd.AddedEventHander hander2 = null;
            clsTimeKeeperOption option = new clsTimeKeeperOption();
            if (((this.m_NewSymbol == "CT") && option.ShowAssignmentDialog) && (this.m_NewSymbol != this.m_Symbol))
            {
                xfmAssignmentAdd add = new xfmAssignmentAdd(Actions.Add, this.m_EmployeeCode, this.m_Date, this.m_Date);
                if (hander == null)
                {
                    hander = (s, e) => this.LoadGrid(this.m_Level, this.m_Code);
                }
                add.Added += hander;
                add.ShowDialog();
            }
            else if ((((this.m_NewSymbol == "F") || (this.m_NewSymbol == "P")) && option.ShowPetitionDialog) && (this.m_NewSymbol != this.m_Symbol))
            {
                xfmPetitionAdd add2 = new xfmPetitionAdd(Actions.Add, this.m_EmployeeCode, this.m_Date, this.m_Date, this.m_NewSymbol);
                if (hander2 == null)
                {
                    hander2 = (s, e) => this.LoadGrid(this.m_Level, this.m_Code);
                }
                add2.Added += hander2;
                add2.ShowDialog();
            }
        }

        private void SaveStyle(bool ShowFooter, int HeightFooter)
        {
            DataSet set = new DataSet();
            using (DataTable table = new DataTable())
            {
                table.Columns.Add("ShowFooter", typeof(string));
                table.Columns.Add("HeightFooter", typeof(string));
                object[] objArray = new object[] { ShowFooter.ToString(), HeightFooter.ToString() };
                table.Rows.Add(new object[0]);
                table.Rows[0][0] = objArray[0];
                table.Rows[0][1] = objArray[1];
                set.Tables.Add(table);
            }
            try
            {
                set.WriteXml(Application.StartupPath + @"\LayoutControl\xucTimekeeperTable1.xml");
            }
            catch
            {
            }
        }

        private void SetRowCellValue(int RowHandle, string EmployeeCode)
        {
            HRM_TIMEKEEPER_TOTAL hrm_timekeeper_total = new HRM_TIMEKEEPER_TOTAL();
            hrm_timekeeper_total.Get(this.m_TimeKeeperTableListID, EmployeeCode);
            string str = EmployeeCode;
            int rowHandle = RowHandle;
            while (EmployeeCode == str)
            {
                this.gbList.SetRowCellValue(rowHandle, this.colWorkTotal, hrm_timekeeper_total.WorkTotal);
                this.gbList.SetRowCellValue(rowHandle, this.colRealDay, hrm_timekeeper_total.RealDay);
                this.gbList.SetRowCellValue(rowHandle, this.colRegulationDay, hrm_timekeeper_total.RegulationDay);
                this.gbList.SetRowCellValue(rowHandle, this.colFurloughDay, hrm_timekeeper_total.FurloughDay);
                this.gbList.SetRowCellValue(rowHandle, this.colCompensationDay, hrm_timekeeper_total.CompensationDay);
                this.gbList.SetRowCellValue(rowHandle, this.colAbsentWOL, hrm_timekeeper_total.AbsentWOL);
                this.gbList.SetRowCellValue(rowHandle, this.colAbsentL, hrm_timekeeper_total.AbsentL);
                this.gbList.SetRowCellValue(rowHandle, this.colClockingError, hrm_timekeeper_total.ClockingError);
                this.gbList.SetRowCellValue(rowHandle, this.colClockingErrorBegin, hrm_timekeeper_total.ClockingErrorBegin);
                this.gbList.SetRowCellValue(rowHandle, this.colClockingErrorEnd, hrm_timekeeper_total.ClockingErrorEnd);
                this.gbList.SetRowCellValue(rowHandle, this.colTotalHour, hrm_timekeeper_total.TotalHour);
                this.gbList.SetRowCellValue(rowHandle, this.colLateMinute, hrm_timekeeper_total.LateMinute);
                this.gbList.SetRowCellValue(rowHandle, this.colEarlyMinute, hrm_timekeeper_total.EarlyMinute);
                this.gbList.SetRowCellValue(rowHandle, this.colNightDutyDay, hrm_timekeeper_total.NightDutyDay);
                this.gbList.SetRowCellValue(rowHandle, this.colExtraHour, hrm_timekeeper_total.ExtraHour);
                this.gbList.SetRowCellValue(rowHandle, this.colPrivateHour, hrm_timekeeper_total.PrivateHour);
                rowHandle++;
                try
                {
                    str = this.gbList.GetRowCellValue(rowHandle, this.colEmployeeCode).ToString();
                }
                catch
                {
                    str = "";
                }
            }
            rowHandle = RowHandle - 1;
            try
            {
                str = this.gbList.GetRowCellValue(rowHandle, this.colEmployeeCode).ToString();
            }
            catch
            {
                return;
            }
            while (EmployeeCode == str)
            {
                this.gbList.SetRowCellValue(rowHandle, this.colWorkTotal, hrm_timekeeper_total.WorkTotal);
                this.gbList.SetRowCellValue(rowHandle, this.colRealDay, hrm_timekeeper_total.RealDay);
                this.gbList.SetRowCellValue(rowHandle, this.colRegulationDay, hrm_timekeeper_total.RegulationDay);
                this.gbList.SetRowCellValue(rowHandle, this.colFurloughDay, hrm_timekeeper_total.FurloughDay);
                this.gbList.SetRowCellValue(rowHandle, this.colCompensationDay, hrm_timekeeper_total.CompensationDay);
                this.gbList.SetRowCellValue(rowHandle, this.colAbsentWOL, hrm_timekeeper_total.AbsentWOL);
                this.gbList.SetRowCellValue(rowHandle, this.colAbsentL, hrm_timekeeper_total.AbsentL);
                this.gbList.SetRowCellValue(rowHandle, this.colClockingError, hrm_timekeeper_total.ClockingError);
                this.gbList.SetRowCellValue(rowHandle, this.colClockingErrorBegin, hrm_timekeeper_total.ClockingErrorBegin);
                this.gbList.SetRowCellValue(rowHandle, this.colClockingErrorEnd, hrm_timekeeper_total.ClockingErrorEnd);
                this.gbList.SetRowCellValue(rowHandle, this.colTotalHour, hrm_timekeeper_total.TotalHour);
                this.gbList.SetRowCellValue(rowHandle, this.colLateMinute, hrm_timekeeper_total.LateMinute);
                this.gbList.SetRowCellValue(rowHandle, this.colEarlyMinute, hrm_timekeeper_total.EarlyMinute);
                this.gbList.SetRowCellValue(rowHandle, this.colNightDutyDay, hrm_timekeeper_total.NightDutyDay);
                this.gbList.SetRowCellValue(rowHandle, this.colExtraHour, hrm_timekeeper_total.ExtraHour);
                this.gbList.SetRowCellValue(rowHandle, this.colPrivateHour, hrm_timekeeper_total.PrivateHour);
                rowHandle--;
                try
                {
                    str = this.gbList.GetRowCellValue(rowHandle, this.colEmployeeCode).ToString();
                }
                catch
                {
                    str = "";
                }
            }
        }

        public void SetTimeKeeperTableList(Guid TimeKeeperTableListID, int Year)
        {
            this.m_Year = Year;
            this.bbeYear.EditValue = this.m_Year;
            if (TimeKeeperTableListID != Guid.Empty)
            {
                this.m_TimeKeeperTableListID = TimeKeeperTableListID;
                new HRM_TIMEKEEPER_TABLELIST().AddRepositoryGridLookupEditByYear(this.repTimeKeeperList, this.m_Year);
                this.bbeTimeKeeperTableListName.EditValue = TimeKeeperTableListID;
            }
        }

        private bool ShiftIsExist(string ShiftCode)
        {
            DIC_SHIFT dic_shift = new DIC_SHIFT();
            foreach (DataRow row in dic_shift.GetList().Rows)
            {
                if (ShiftCode == row["ShiftCode"].ToString())
                {
                    return true;
                }
            }
            return false;
        }

        private void ShowHideColumn(int NumberDay)
        {
            switch (NumberDay)
            {
                case 0x1c:
                    this.colDay28.Visible = true;
                    this.colDay29.Visible = false;
                    this.colDay30.Visible = false;
                    this.colDay31.Visible = false;
                    break;

                case 0x1d:
                    this.colDay28.Visible = true;
                    this.colDay29.Visible = true;
                    this.colDay30.Visible = false;
                    this.colDay31.Visible = false;
                    break;

                case 30:
                    this.colDay28.Visible = true;
                    this.colDay29.Visible = true;
                    this.colDay30.Visible = true;
                    this.colDay31.Visible = false;
                    break;

                case 0x1f:
                    this.colDay28.Visible = true;
                    this.colDay29.Visible = true;
                    this.colDay30.Visible = true;
                    this.colDay31.Visible = true;
                    break;
            }
        }

        private void simpleButton1_Click(object sender, EventArgs e)
        {
            this.popupMenu1.ShowPopup(Control.MousePosition);
        }

        private bool SymbolIsExist()
        {
            if (Information.IsNumeric(this.m_NewSymbol))
            {
                return true;
            }
            string[] strArray = this.m_NewSymbol.Split(new char[] { ':' });
            if (((strArray.Length == 2) && (Information.IsNumeric(strArray[0]) && (Convert.ToInt32(strArray[0]) > 0))) && (Information.IsNumeric(strArray[1]) && (Convert.ToInt32(strArray[1]) < 0)))
            {
                return true;
            }
            DataTable list = new DIC_SYMBOL().GetList();
            foreach (DataRow row in list.Rows)
            {
                if (this.m_NewSymbol == row["SymbolCode"].ToString())
                {
                    return true;
                }
            }
            return false;
        }

        private bool SymbolIsExist(string Symbol)
        {
            if (Information.IsNumeric(Symbol))
            {
                return true;
            }
            string[] strArray = Symbol.Split(new char[] { ':' });
            if (((strArray.Length == 2) && (Information.IsNumeric(strArray[0]) && (Convert.ToInt32(strArray[0]) > 0))) && (Information.IsNumeric(strArray[1]) && (Convert.ToInt32(strArray[1]) < 0)))
            {
                return true;
            }
            DataTable list = new DIC_SYMBOL().GetList();
            foreach (DataRow row in list.Rows)
            {
                if (Symbol == row["SymbolCode"].ToString())
                {
                    return true;
                }
            }
            return false;
        }

        private void TotalCalculate(int i, int Length)
        {
            System.DateTime time2;
            System.DateTime time3;
            System.DateTime time4;
            System.DateTime time5;
            DIC_SHIFT dic_shift = new DIC_SHIFT();
            dic_shift.Get(this.m_ShiftCode);
            System.DateTime time = DateAndTime.DateAdd(DateInterval.Day, 1.0, this.m_Date);
            if (dic_shift.IsOvernight)
            {
                time2 = new System.DateTime(this.m_Date.Year, this.m_Date.Month, this.m_Date.Day, dic_shift.BeginTime.Hour, dic_shift.BeginTime.Minute, 0);
                time3 = new System.DateTime(time.Year, time.Month, time.Day, dic_shift.EndTime.Hour, dic_shift.EndTime.Minute, 0);
            }
            else
            {
                time2 = new System.DateTime(this.m_Date.Year, this.m_Date.Month, this.m_Date.Day, dic_shift.BeginTime.Hour, dic_shift.BeginTime.Minute, 0);
                time3 = new System.DateTime(this.m_Date.Year, this.m_Date.Month, this.m_Date.Day, dic_shift.EndTime.Hour, dic_shift.EndTime.Minute, 0);
            }
            if (dic_shift.IsBreakOvernight)
            {
                time4 = new System.DateTime(this.m_Date.Year, this.m_Date.Month, this.m_Date.Day, dic_shift.BreakBeginTime.Hour, dic_shift.BreakBeginTime.Minute, 0);
                time5 = new System.DateTime(time.Year, time.Month, time.Day, dic_shift.BreakEndTime.Hour, dic_shift.BreakEndTime.Minute, 0);
            }
            else
            {
                time4 = new System.DateTime(this.m_Date.Year, this.m_Date.Month, this.m_Date.Day, dic_shift.BreakBeginTime.Hour, dic_shift.BreakBeginTime.Minute, 0);
                time5 = new System.DateTime(this.m_Date.Year, this.m_Date.Month, this.m_Date.Day, dic_shift.BreakEndTime.Hour, dic_shift.BreakEndTime.Minute, 0);
            }
            HRM_TIMEKEEPER_BREAK hrm_timekeeper_break = new HRM_TIMEKEEPER_BREAK();
            if (((i == 0) && (Length == 2)) && dic_shift.IsBreak)
            {
                this.m_TimeIn = time2;
                this.m_TimeOut = time4;
                hrm_timekeeper_break.Delete(this.m_TimeKeeperTableListID, this.m_EmployeeCode, this.m_ShiftCode, this.m_Date);
            }
            else if (((i == 1) && (Length == 2)) && dic_shift.IsBreak)
            {
                this.m_TimeIn = time5;
                this.m_TimeOut = time3;
                hrm_timekeeper_break.Delete(this.m_TimeKeeperTableListID, this.m_EmployeeCode, this.m_ShiftCode, this.m_Date);
            }
            else
            {
                this.m_TimeIn = time2;
                this.m_TimeOut = time3;
                if (dic_shift.IsBreak)
                {
                    hrm_timekeeper_break.Delete(this.m_TimeKeeperTableListID, this.m_EmployeeCode, this.m_ShiftCode, this.m_Date);
                    hrm_timekeeper_break.Insert(this.m_TimeKeeperTableListID, this.m_EmployeeCode, this.m_ShiftCode, this.m_Date, Guid.NewGuid(), time4, time5, MyDateTime.NumberHour(time4, time5), MyDateTime.NumberMinute(time4, time5), true);
                }
            }
            if (Information.IsNumeric(this.m_NewSymbol))
            {
                if (Convert.ToInt32(this.m_NewSymbol) > 0)
                {
                    this.m_TimeIn = MyDateTime.AddMinute(this.m_TimeIn, Convert.ToInt32(this.m_NewSymbol));
                }
                else
                {
                    this.m_TimeOut = MyDateTime.MinusMinute(this.m_TimeOut, -Convert.ToInt32(this.m_NewSymbol));
                }
                this.m_NewSymbol = "+";
            }
            else
            {
                string[] strArray = this.m_NewSymbol.Split(new char[] { ':' });
                if (Information.IsNumeric(strArray[0]) && (Convert.ToInt32(strArray[0]) > 0))
                {
                    if (Information.IsNumeric(strArray[1]) && (Convert.ToInt32(strArray[1]) < 0))
                    {
                        this.m_TimeIn = MyDateTime.AddMinute(this.m_TimeIn, Convert.ToInt32(strArray[0]));
                        this.m_TimeOut = MyDateTime.MinusMinute(this.m_TimeOut, -Convert.ToInt32(strArray[1]));
                        this.m_NewSymbol = "+";
                    }
                }
                else
                {
                    DataTable list = new DIC_SYMBOL().GetList();
                    foreach (DataRow row in list.Rows)
                    {
                        if (this.m_NewSymbol == row["SymbolCode"].ToString())
                        {
                        }
                    }
                }
            }
            HRM_TIMEKEEPER hrm_timekeeper = new HRM_TIMEKEEPER();
            hrm_timekeeper.Get(this.m_TimeKeeperTableListID, this.m_EmployeeCode, this.m_ShiftCode, this.m_NewSymbol, this.m_Date, this.m_TimeIn, this.m_TimeOut, i, Length);
            this.m_TimeIn = hrm_timekeeper.TimeIn;
            this.m_TimeOut = hrm_timekeeper.TimeOut;
            this.m_Hour = hrm_timekeeper.Hour;
            this.m_DayHour = hrm_timekeeper.DayHour;
            this.m_NightHour = hrm_timekeeper.NightHour;
            this.m_LateMinute = hrm_timekeeper.LateMinute;
            this.m_EarlyMinute = hrm_timekeeper.EarlyMinute;
        }

        private void xfmInsertSymbol_UnShiftData(object sender, string Symbol, int FromDate, int ToDate, int FromRow, int ToRow, bool IsCheckAll)
        {
            try
            {
                int num;
                int num2;
                if (IsCheckAll)
                {
                    for (num = FromDate; num <= ToDate; num++)
                    {
                        num2 = 0;
                        while (num2 < this.gbList.RowCount)
                        {
                            if ((num2 % 30) == 0)
                            {
                                base.SetWaitDialogCaption("Đang cập nhật ng\x00e0y " + num.ToString() + " d\x00f2ng.." + num2.ToString());
                            }
                            try
                            {
                                this.m_NewSymbol = Symbol;
                                this.m_Date = new System.DateTime(this.m_Year, this.m_Month, num);
                                this.m_EmployeeCode = this.gbList.GetRowCellValue(num2, this.colEmployeeCode).ToString();
                                this.m_PrivateHour = 0.0;
                                this.m_IsWork = HRM_TIMEKEEPER_SHIFT.IsWork(this.m_TimeKeeperTableListID, this.m_EmployeeCode, this.m_ShiftCode, this.m_Date.Day);
                                this.TotalCalculate(0, 1);
                                this.dt_Timekeeper.Rows.Add(new object[] { 
                                    this.m_TimeKeeperTableListID, this.m_EmployeeCode, this.m_ShiftCode, this.m_Date, this.m_NewSymbol, this.m_TimeIn, this.m_TimeOut, this.m_Hour, this.m_DayHour, this.m_NightHour, this.m_PrivateHour, this.m_LateMinute, this.m_EarlyMinute, this.m_IsOvertime, this.m_IsWork, 0, 
                                    ""
                                 });
                                this.DeleteData();
                                this.SaveData();
                                if (num == ToDate)
                                {
                                    HRM_TIMEKEEPER_TOTAL hrm_timekeeper_total = new HRM_TIMEKEEPER_TOTAL();
                                    hrm_timekeeper_total.Get(this.m_TimeKeeperTableListID, this.m_EmployeeCode);
                                }
                            }
                            catch
                            {
                            }
                            num2++;
                        }
                        this.DoHide();
                    }
                }
                else
                {
                    for (num = FromDate; num <= ToDate; num++)
                    {
                        for (num2 = FromRow - 1; num2 <= (ToRow - 1); num2++)
                        {
                            if ((num2 % 30) == 0)
                            {
                                base.SetWaitDialogCaption("Đang cập nhật ng\x00e0y " + num.ToString() + " d\x00f2ng.." + num2.ToString());
                            }
                            try
                            {
                                this.m_NewSymbol = Symbol;
                                this.m_Date = new System.DateTime(this.m_Year, this.m_Month, num);
                                this.m_EmployeeCode = this.gbList.GetRowCellValue(num2, this.colEmployeeCode).ToString();
                                this.m_PrivateHour = 0.0;
                                this.m_IsWork = HRM_TIMEKEEPER_SHIFT.IsWork(this.m_TimeKeeperTableListID, this.m_EmployeeCode, this.m_ShiftCode, this.m_Date.Day);
                                this.TotalCalculate(0, 1);
                                this.dt_Timekeeper.Rows.Add(new object[] { 
                                    this.m_TimeKeeperTableListID, this.m_EmployeeCode, this.m_ShiftCode, this.m_Date, this.m_NewSymbol, this.m_TimeIn, this.m_TimeOut, this.m_Hour, this.m_DayHour, this.m_NightHour, this.m_PrivateHour, this.m_LateMinute, this.m_EarlyMinute, this.m_IsOvertime, this.m_IsWork, 0, 
                                    ""
                                 });
                                this.DeleteData();
                                this.SaveData();
                                if (num == ToDate)
                                {
                                    new HRM_TIMEKEEPER_TOTAL().Get(this.m_TimeKeeperTableListID, this.m_EmployeeCode);
                                }
                            }
                            catch
                            {
                            }
                        }
                        this.DoHide();
                    }
                }
                this.LoadGrid(this.m_Level, this.m_Code);
            }
            catch
            {
            }
        }

        private void xucExpandCollapseButton1_ExpandCollapsed(object sender, bool IsExpand)
        {
            if (IsExpand)
            {
                this.gbList.OptionsView.ShowGroupPanel = true;
            }
            else
            {
                this.gbList.OptionsView.ShowGroupPanel = false;
            }
        }

        private void xucTimekeeperTable_Load(object sender, EventArgs e)
        {
            this.LoadInterface();
            this.LoadSymbol();
        }

        public delegate void ClosedHandler(object sender);

        public delegate void TimekeeperTableDeletedHandler(object sender);

        public delegate void TimekeeperTableHourSelectedHandler(object sender, string Code, Guid TimeKeeperTableListID, int Year, int MenuSelected);

        public delegate void TimekeeperTableInsertedHandler(object sender);

        public delegate void UnShiftDataHandler(object sender, int Month, int Year);
    }
}

